Conditional Rendering based on Access Rules

0
I have an entity called permission, which gives access to various container based on PermissionName. I have a use case where I need to render a column container based on a permission name, say Users card should be visible only if user has a permission object from permissions array with it's name has 'USER'. A user can have multiple permissions associated with him/her [1-*] association. I wrote a microflow which returns boolean based on the permissions that the user has access to. I tried to use data view and call the microflow to conditionally render based on the boolean value, but the microflow must return an object to be able to use in a data widget. What else is the way to achieve conditional rendering?
asked
1 answers
3

Hi Sudhakar,

 

You can store the booleans in a nonpersistable helper object and use conditional visibility to achieve this.

Some links: 

https://docs.mendix.com/refguide/common-widget-properties/#visibility-properties

https://docs.mendix.com/refguide/persistability/

answered