Rockwell Automation FactoryTalk View Machine Edition Users Guide User Manual

Page 193

Advertising
background image

11

Set up security

11-17

• •

This example uses the security function CurrentUserName( ). The function returns the
string value of the Account ID (user name) for the user who is currently logged in.

The CurrentUserName( ) function is case sensitive. All RSView 3.20 and earlier user
names use uppercase letters.

When the application starts, the DEFAULT user is logged in. The DEFAULT user is also
logged in when a user logs out.

To assign visibility animation to the Goto display button

1. Right-click the Goto display button, select Animation > Visibility.

2. In the Animation dialog box, in the Expression box, type this:

CurrentUserName( ) <> “DEFAULT”

3. For the Expression True State, click Visible.

4. Click Apply.

Example: Assign visibility animation to the shutdown button

This example shows how to assign visibility animation to the shutdown button so that
only the ADMIN user can stop the application.

To assign visibility animation to the shutdown button

1. Right-click the shutdown button, select Animation > Visibility.

2. In the Animation dialog box, in the Expression box, type this:

CurrentUserName( ) == “ADMIN”

3. For the Expression True State, click Visible.

4. Click Apply.

Example: Assign visibility animation to the shutdown button

This example shows how to assign visibility animation to the shutdown button so that
only users assigned code G or code H can stop the application.

To assign visibility animation to the shutdown button

1. Right-click the shutdown button, select Animation > Visibility.

2. In the Animation dialog box, in the Expression box, type this:

CurrentUserHasCode(GH)

3. For the Expression True State, click Visible.

Advertising