Security

Use Security operations to work with user information.

Block
Text

login();
  1

1: Operation

[Login]
Block
[Login]
Text

'login'

Logs in the user into the system.
User authentication and login are performed with the user name and password set in the source properties.
Source Property Description
Target01.SecuritySettings.UserNameEnter Set the user name used for login. Setting value is cleared after login operation.
Target01.SecuritySettings.PasswordEnter Set the password used for login. Setting value is cleared after login operation.
 
[Logout]
Block
[Logout]
Text

'logout'

Logs out the user from the system.
[PopupSystemLoginDialog]
Block
[PopupSystemLoginDialog]
Text

'showSystemLoginDialog'

Pops up the log in dialog box.
[PopupAddUserDialog]
Block

[PopupAddUserDialog]

Text

'showAddUserDialog'

Pops up a dialog box for adding users.

Note: For information about adding users, refer to the following.
Add and Delete Users on Display Unit

[PopupDeleteUserDialog]
Block

[PopupDeleteUserDialog]

Text

'showDeleteUserDialog'

Pops up a dialog box for deleting users.

Note: For information about deleting users, refer to the following.
Add and Delete Users on Display Unit

[Export]
Block

[Export]

Text

'exportUserInfo'

Exports user information from the display unit to USB storage.
[Import]
Block

[Import]

Text

'importUserInfo'

Imports user information from USB storage to the display unit.

(Example: Login)

  1. Add a Switch object (Switch1) on the screen.
  2. In the Script editor, add a Touch trigger and select [Click].
  3. Add a Screen Object and set as Switch1 into the Touch trigger.
  4. Add a Security operation and select [Login].
Block

Text

onClick($GraphicObject.Switch1, ()=>{

login();

});

Simultaneous Execution of Security Operations

You can run only one of the following Security operations at a time. While the first operation is still running, if you run any of the other operations, it will fail to run.

[PopupSystemLoginDialog]

[PopupAddUserDialog]

[PopupDeleteUserDialog]

[Export]

[Import]