Hi community!
How are you?
How can I apply a rule only if a condition is met? In this case, if the logged-in user has the CASACENTRAL organizational role, the rule does not apply, otherwise the rule will apply
"UpriNino": {
FiltrarRegionNinoPorRegionJI: {
ruleType: BusinessRuleModule.enums.RuleType.FILTRATION,
//autocomplete: true,
autoClean: true,
baseAttributePatch: "UpriRegion",
comparisonType: Terrasoft.ComparisonType.EQUAL,
type: BusinessRuleModule.enums.ValueType.ATTRIBUTE,
attribute: "UpriEstRegion"
}
},
if the user has the CASACENTRAL role, there should not be any filter in the UpriNino field
I hope your can help me!
King Regards
Ezequiel!