omron — ImportSecuritySystem

Appendix: Built-in Scripting Language Examples ImportSecuritySystem This function imports a security system configuration from an external file. Syntax ImportSecuritySystem( strSecuritySystemPassword , strFileName , strFilePassword { | , optNumMode } ) strSecuritySystemPassword The main password for the project's current security system configuration. (The security system must be enabled.) strFileName The complete file path and name of the configuration file that you want to import.

(The file must have been previously exported from a IWS project using either the Security System configuration tool or the ExportSecuritySystem function.) strFilePassword The password for the specified configuration file. optNumMode A numeric flag indicating how the imported settings should be handled: This parameter is optional; if no value is specified, then the default value is 0 . Returned value This function returns the following possible values:

Examples ExportSecuritySystem( "curr3ntPa55w0rd", "C:\security.txt", "1mp0rtPa55w0rd" ) ExportSecuritySystem( "curr3ntPa55w0rd", "C:\security.txt", "1mp0rtPa55w0rd", 2 ) Page 496 InduSoft Web Studio Value Description 0 Specified user is unblocked. 1 Specified user is blocked. Tag Name Expression Tag GetUserState( "Bob" ) Tag GetUserState ( "Albert" ) Function Group Execution Windows Embedded Thin Client ImportSecurit ySSyecsutriteym Synchronous Supported Supported Supported Value Description 0 Append the imported settings to the current settings. In the event of a conflict, replace with the imported settings. 1 Append the imported settings to the current settings.

In the event of a conflict, keep the current settings. 2 Completely replace the current settings with the imported settings. Value Description -2 Wrong parameter type. -1 Invalid number of parameters. 0 Couldn't read security data. 1 File imported successfully.