I'm trying to check roles on the Menu items on the top but when I enclose it in an IF I'm not seeing the the roles in conditions.
Hey!
So what I use to check roles is using a data action. where inside you can return if the user logged has a role or not
Inside of the data action, you can use the role actions to see if the user has the role or not :)
Then you just need to assign to the output variable of the data action if the user has a role or not
Don't forget that the action that checks the role needs the id of the User
then you can use the output of the data action :)
Kind Regards,
Márcio
Hi Márcio,
Thanks for your solution!!!
Anton
Thank you very much. It worked.
Hi @Anna Dwarika,
You cannot check the role in the client (If) widget. Instead, you have to fetch boolean value (UserHasParticularRoleAccess?) in data action or oninitialize action.
Server action only will have checkrole function
Refer this also : https://www.outsystems.com/forums/discussion/62886/reactive-web-application-check-role/
Thanks, Aadhavan S