How to restrict buttons based on AD with Section Access
Hi All!
I have an application with some buttons that accomplish different functionalities, but I need each of them to be seen just for some users. For example:
- Button1: User1 & User2
- Button2: User2 & User3
- Button3: User 4.
The idea is that my .qvw can take the user that is using the application from ActiveDirectory, and show him just some buttons that I have defined.
I don't understand really much about SectionAccess, but I have been able to get a code like this:
You can create a show condition in the button. See Layout - Show - Conditional.
Here you need to enter a formula that determines whether the button should be visible or not. If IDENTIDAD is your user name (with only one value left when a user has logged on), the following could be a valid condition that shows the button to user 1 and 2: