Giving Role with Switch in Microflows

0
Hi! I'm trying to make a setting that gives "DetailedView" role to the user so the user can see more details in the other stuff but I'm not sure how can I change or add the role. And it wants a boolean too! Where should I add the boolean to?   (Its a "Contacts" app by the way) Settings_Overview:    Inside of Switch:    The Microflow:    Domain Model: 
asked
1 answers
2

Hi Yunus,

 

What's the reason for setting this up via user roles? The User can toggle this on and off as they please, right? So security isn't an issue. If that's the case, then why not use conditional visibility on the contact page. Add the boolean on the account entity, which users can edit. Then when navigating to the contact page with a (nonpersistable) helper object you can check this boolean and show certain details. If you like, I could make a quick demo of this.

 

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

answered