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 />

Value<br />

Description<br />

-1 Internal error; contact <strong>Technical</strong> Support.<br />

0 New user created successfully.<br />

1 Invalid number of parameters.<br />

2 Wrong parameter type.<br />

3 User name already exists.<br />

4 Group does not exist.<br />

5 Failed to save to configuration file.<br />

6 Invalid user.<br />

7 User full name already exists.<br />

8 Reentrant function call not allowed.<br />

9 User clicked Cancel button when using the standard Create User dialog.<br />

10 Invalid password, check the minimum password size specified for the group.<br />

11 Invalid group. (Group may not have Runtime group option selected.)<br />

12 Would open dialog.<br />

13 User currently logged on does not have the rights to create user (i.e., user does<br />

not have Edit Security System).<br />

14 The current Security Mode does not allow user to be created.<br />

Notes<br />

Users created with this function are not shown in the project's Security folder because they are stored in a<br />

secondary database. To manage this database, use the ExtUser.exe program (located in the Bin sub-folder of<br />

the application folder).<br />

Examples<br />

CreateUser( "Bob", "Admin", "Chocolate", "Bob Smith" )<br />

CreateUser( "Albert", "Engineering", "EMC2", "Albert Jones" )<br />

ExportSecuritySystem<br />

This function exports the security system configuration to an encrypted file.<br />

Function Group Execution Windows Embedded Thin Client<br />

ExportSecuritySystem<br />

Synchronous Supported Supported Supported<br />

Syntax<br />

ExportSecuritySystem(strFileName,strPassword)<br />

strFileName<br />

strPassword<br />

The complete file path and name where you want to save the configuration file.<br />

The main password for the security system. This same password will be used to protect the<br />

exported file.<br />

<strong>InduSoft</strong> Web Studio Page 587

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

Saved successfully!

Ooh no, something went wrong!