10-30-2019 06:41 PM
Hello,
I am trying set a default value within a form create layout for a single document suggestion widget.
I have tried the following within the custom properties to no avail:
defaultValue #{currentDocument.customSchema.customDocProperty}
...where customDocProperty is of type Document.
Any suggestions on how to set a default value for a single document suggestion widget?
Thanks!
10-31-2019 04:54 PM
Hello,
You have to use an automation chain with the operation Document.SetProperty linked to the event handler "Empty Document Created". Take care not to set save=true on the Document.SetProperty as the document is not committed to the database at that moment.
Regards
10-31-2019 04:54 PM
Hello,
You have to use an automation chain with the operation Document.SetProperty linked to the event handler "Empty Document Created". Take care not to set save=true on the Document.SetProperty as the document is not committed to the database at that moment.
Regards
11-04-2019 03:44 PM
Hi Gregory, Thank you for your reply. Is there any way to get the parent document from the empty document created?
11-04-2019 03:53 PM
You can do it using the code provided in the Nuxeo Studio Community Cookbook: https://github.com/nuxeo/nuxeo-studio-community-cookbook/tree/master/modules/nuxeo/modeler-tips-tric...
11-04-2019 04:08 PM
Awesome, thanks a ton Gregory! Appreciate the support & quick response!
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.