How to validate unique column custom in document?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2020 08:37 PM
Hello everybody,
How can I validate in polymer section that a column is unique in a nuxeo form?
What is the best alternative?
I tried to run nxql but I couldn't :'(
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2020 07:31 AM
Hello,
This uniqueness check should be done on the Polymer part (when validating a form for example).
Do you want to check uniqueness in a complex multivalued property? In the search results?
Thx
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2020 01:57 PM
Yes, I need validate the custom input value is unique in database before save the form.
My solution is:
- Add operation Repository.ResultSetQuery
- Add listener on input: ``` this.$.<custom_field>.addEventListener('blur', this._<custom_method>bind(this), true);
3. Execute query then validate is unique value.
:)
Thanks.
