How to use 'validateUnique' validation in FormControlValidationMixin
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2015 06:46 AM
Hi,
Can any one please post an example of how to use the "validateUnique" validation of FormControlValidationMixin.
The usage is given like,
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.
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.
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2015 07:18 AM
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
https://github.com/Alfresco/Aikau/blob/master/tutorial/chapters/Tutorial16.md
