Hello
I have N variables set on true inside my OnStart of the application. Those variables set the visibility of certain icons.
inside one screen i have a list, i want to change the status of those variables based on a condition of my list but i get this mistake.
this is my code
If(CountRows(Filter(UserList.AllItems,Find("Manager",Role)))<1, Set(Manag_visible,true), Set(Manag_visible,false))
what am i doing wrong?
how can i set the variable on true or false based on my condition?
Solved! Go to Solution.
Hi @Antonioclk ,
Set is s behavior function as you know. Behavior functions can only used in behavior properties. So, please move the formula OnVisible of that screen, replace UserList.AllItems with the source list:
If(CountRows(Filter(UserList,Find("Manager",Role)))<1, Set(Manag_visible,true), Set(Manag_visible,false))
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Hi @Antonioclk ,
Set is s behavior function as you know. Behavior functions can only used in behavior properties. So, please move the formula OnVisible of that screen, replace UserList.AllItems with the source list:
If(CountRows(Filter(UserList,Find("Manager",Role)))<1, Set(Manag_visible,true), Set(Manag_visible,false))
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
great 🙂 thanks