11-14-2012 09:07 AM
Hi, I had defined a document type in my nuxeo studio, this document has two fields: "begin time" and "end time". I want to validate in the creation time, "begin time" is less than "end time". I was reading this post: Cross validation with jsf
But, how would I get the inputTexts ids if these are generate automatically with the documentLayout tag? and how can I define the inputHidden in my nuxeo studio?
11-22-2012 07:28 PM
Hi,
In studio it's not really easy right now to get the widget name, but looking at your generated extensions.xml file you should be able to retrieve the generated widget names (generally it's derived from the field name, with a counter to handle duplications). If your layout definition does not change much, their name should not change.
The inputHidden widget can be defined using an advanced "generic" widget, making it use the type "template", and uploading your template in Studio.
Also note that in 5.7 a built-in "date range" widget type will be available, performing that validation natively.
11-22-2012 07:28 PM
Hi,
In studio it's not really easy right now to get the widget name, but looking at your generated extensions.xml file you should be able to retrieve the generated widget names (generally it's derived from the field name, with a counter to handle duplications). If your layout definition does not change much, their name should not change.
The inputHidden widget can be defined using an advanced "generic" widget, making it use the type "template", and uploading your template in Studio.
Also note that in 5.7 a built-in "date range" widget type will be available, performing that validation natively.
11-23-2012 08:55 AM
Thanks!! I will try it
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.