As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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
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>