cancel
Showing results for 
Search instead for 
Did you mean: 

How to use 'validateUnique' validation in FormControlValidationMixin

satheeshkumar
Champ in-the-making
Champ in-the-making
Hi,

Can any one please post an example of how to use the "validateUnique" validation of FormControlValidationMixin.
The usage is given like,

   {
      "validation": "validateUnique",
      "errorMessage": "Already used",
     "itemsProperty": "items",
     "publishTopic": "GET_VALUES"
   }


But I could not see any examples on how to use this.

For example, I am adding this in a field of a form say "prefix" to validate the uniqueness, now how can I make the "GET_VALUES" topic to retrieve the list of "prefix" and put it in "items".

Please let me know if you are not clear about my question.

Thanks in Advance.
1 REPLY 1

satheeshkumar
Champ in-the-making
Champ in-the-making
I am able to figure out how to do that, I guess the below link will belp,
https://github.com/Alfresco/Aikau/blob/master/tutorial/chapters/Tutorial16.md
Getting started

Tags


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.