Question:
How can I set up buttons of a specific screen to be available only for users of a certain group?
Solution:
To do so, you can write a script in the screen’s OnPreShow event, using the Viewer’s IsUserMemberOfGroup event to check if the user belongs to the configured group, in addition to setting the button’s Enabled property to True to enable it. For example:
If Application.IsUserMemberOfGroup (“Administrator”) Then
Item(“CommandButton1”).Enabled = True
End If
Item(“CommandButton1”).Enabled = True
End If
Note: to set up the button to start disabled, you must set its Enabled property as False on E3Studio.