cancel
Showing results for 
Search instead for 
Did you mean: 

WebUI and Accessing Parent Properties

Sudarshan_Ghate
Confirmed Champ
Confirmed Champ

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

1 REPLY 1

Josh-F-Hyland
Employee
Employee

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>

 

--
Hyland Sales Solution Engineer