4 weeks ago
Hello,
I am using Nuxeo LTS2021. In Web UI, I am trying to create a document in a folder. In the document creation script, how do I access the parent folder properties? I do not want to access the properties in Automation script, basically in the Polymnet script.
Thank you,
SG
4 weeks ago
By "in the document creation script", do you mean in the Create layout for a document?
You can use the nuxeo-document element to load any document given it's UUID. The UUID of the parent is contained in the parentRef property of the current document. So you can do something like:
<nuxeo-document id="parentFetcher" auto doc-id="[[document.parentRef]]" response="{{_theParentDoc}}"> </nuxeo-document>
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.