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
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
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.
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.
Views
Likes
Replies
Views
Likes
Replies