add two condition in sysFilter
Hi Team,
Any one help me how to add two conditions in my sysFilter?
Example : hasNamedRight('admin') and hasNamedRight('testGroup') both the group mean allow.
how to use the Logical operator in sysFilter
Hi Team,
Any one help me how to add two conditions in my sysFilter?
Example : hasNamedRight('admin') and hasNamedRight('testGroup') both the group mean allow.
how to use the Logical operator in sysFilter
Hi @kumar_27 ,
Use boolOperator="OR" inside the condition tag.
Example, Below sysFilter will allow read access to the data for only the operators who have either admin or testGroup named rights assigned,
<element autopk="true" label="My Schema" name="mySchema">
<sysFilter name="readAccess">
<condition boolOperator="OR" enabledIf="hasNamedRight('admin')=true" expr="TRUE"/>
<condition enabledIf="hasNamedRight('testGroup')=false" expr="FALSE"/>
</sysFilter>
Reference document:
<conditions> are defined within the same <sysfilter> element, this attribute lets you combine them. By default, the logical link is between <condition> elements is “AND”. The “@boolOperator” attribute lets you combine “OR” and “AND” type links.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.