Permission by Groups of Users for Screen Objects

<< Click to Display Table of Contents >>

 

Permission by Groups of Users for Screen Objects

Sometimes users want an operator to access a Screen, but do not view or enable some objects. To program that functionality, let's first discover whether a user belongs to a restricted group or not. This information varies according to the logged-in user, and remember that there may have more than one view station, and therefore more than one logged-in user.

1.Right-click the View - Viewer and Frames - Viewer item and insert an Internal Tag named "AdminTag".

AdminTag

AdminTag

2.On Viewer's OnLogin event, insert the script shown on the next figure.

Viewer's OnLogin event

Viewer's OnLogin event

3.On InitialScreen, create a Link between the Visible property of Exit Text and the AdminTag Tag. Only users from the Administrators group can view this object.

Visible property

Visible property

Was this page useful?