We had a requirement to ensure that a specific value was not repeated in a Page List.Page list contains list of frameworks.When user tries to select same framework for the second time,error must be thrown .Can any one explain? Thanks in advance.
You could try using IndexInPageListWhen(String whenName, ClipboardProperty lookin)
But to do that you would first need to set some Property or Parameter on the Clipboard before calling that Function otherwise the When rule rule would not know what value to compare against a particular Property in each Page of the PageList.
That is, the When rule would encapsulate the "lookAt" Property but is up to you to supply the "lookfor" value through some means.
@String.contains() could be used as the comparison - does not have to be an exact match.
You could perhaps develop your own Function: IndexInPageListWhenLookingFor(String lookfor, String whenName, ClipboardProperty lookin)
That function would set "lookfor" into a parameter then return IndexInPageListWhen().