18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix: Built-in Scripting Language<br />

Returned value<br />

This function returns the following possible values:<br />

Value<br />

Description<br />

-3 Specified user does not exist.<br />

-2 Wrong parameter type.<br />

-1 Invalid number of parameters.<br />

0 Specified user is unblocked.<br />

1 Specified user is blocked.<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag GetUserState( "Bob" )<br />

Tag GetUserState ( "Albert" )<br />

ImportSecuritySystem<br />

This function imports a security system configuration from an external file.<br />

Function Group Execution Windows Embedded Thin Client<br />

ImportSecuritySystem<br />

Synchronous Supported Supported Supported<br />

Syntax<br />

ImportSecuritySystem(strSecuritySystemPassword,strFileName,strFilePassword{ | ,optNumMode })<br />

strSecuritySystemPassword<br />

strFileName<br />

The main password for the project's current security system configuration. (The security system<br />

must be enabled.)<br />

The complete file path and name of the configuration file that you want to import. (The file must<br />

have been previously exported from a IWS project using either the Security System configuration<br />

tool or the ExportSecuritySystem function.)<br />

strFilePassword<br />

optNumMode<br />

The password for the specified configuration file.<br />

A numeric flag indicating how the imported settings should be handled:<br />

Value<br />

Description<br />

0 Append the imported settings to the current settings. In the event of a<br />

conflict, replace with the imported settings.<br />

1 Append the imported settings to the current settings. In the event of a<br />

conflict, keep the current settings.<br />

2 Completely replace the current settings with the imported settings.<br />

This parameter is optional; if no value is specified, then the default value is 0.<br />

Returned value<br />

This function returns the following possible values:<br />

Page 592<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!