Navigation items visibility based on attribute value.

0
Hi, I have created a page from where i am creating new users  and adding them into my own database as well as Mendix account database and while saving i am giving them a user role of Internal User which i have created.  I have also created one association entity with it which contains 4 boolean attributes (Order, Accounting, CRM, Report) . Those checkboxes attribute names i have created same as the name of some navigation items.   Now what i want it when a checkbox is ticked, suppose (Accounting and CRM) , i want to let that user see only that navigation item with the same name Accounting ,CRM every other navigation item out of these 4 will be hidden for this.    Now again if i create another user with checkboxes ticked as Order, only navigation item with the name order will be visible to him and other 3 will be hidden.   As far as i know we can make visibility of navigation items based on roles(role based view), and here all the users i will create from this page will have same role(Internal User). I want visibility based on the ticked attributes(checkboxes).   Can anyone help me on that?
asked
2 answers
0

Hello Harsh,

 

You could do what mendix does when you generate overview pages for entities, and creating a menu by the means of a navigation list: 

image.png

 

On every item in the navigationlist you can put visibility. and you can put it in a snippet so you can reuse it across screens

 

Hope this helps,

 

Good luck!

answered
0

Screenshot 2025-03-24 151350.png

See this is how it looks in the UI, when creating a user i am ticking some checkboxes, now on the left i have navigation and some items inside, so if report is checked i will only see report here when i log in with this user

 

 

This is the navigation panel

Screenshot 2025-03-24 152000.png

answered