cancel
Showing results for 
Search instead for 
Did you mean: 

How to validate unique column custom in document?

Gabino_Reyes
Champ in-the-making
Champ in-the-making

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

Gregory_Carlin
Elite Collaborator
Elite Collaborator

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

Gabino_Reyes
Champ in-the-making
Champ in-the-making

Yes, I need validate the custom input value is unique in database before save the form.

My solution is:

  1. Add operation Repository.ResultSetQuery
  2. Add listener on input: ``` this.$.<custom_field>.addEventListener('blur', this._<custom_method>bind(this), true);
3. Execute query then validate is unique value.

:)

Thanks.





Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

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.