How to validate unique column custom in document?

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 :'(

0 votes

2 answers

160 views

ANSWER



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.$.
  3. Execute query then validate is unique value.

:)

Thanks.

0 votes



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

0 votes