18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

Value Security Mode is Distributed–Client Security Mode is Domain (LDAP)<br />

5 N/A No users or groups returned by query<br />

6 N/A Invalid user or group<br />

Notes<br />

This function returns the same value that is sent to the project tag configured in the Status Tag box, in the<br />

security system server settings. However, this function returns the value immediately, while the project tag<br />

configured in the Status Tag box is only updated periodically (according to Synchonization Period for Distributed–<br />

Client or Retry Interval for Domain (LDAP)). As such, there may be times when this function's returned value and<br />

the value of the project tag do not match.<br />

Also, there are other actions besides calling this function that update the status:<br />

• When a user logs on to the project. Specifically, if the user logs on via the built-in LogOn dialog (invoked by<br />

either calling the LogOn function or selecting the LogOn menu command in the Viewer), then the status is<br />

updated before the dialog is displayed.<br />

• When the authentication server is offline and the retry interval (configured in the security system server<br />

settings) has elapsed.<br />

• When the security system settings are opened in the development application.<br />

Whenever the status is updated, the new value is immediately sent to the project tag configured in the Status<br />

Tag box.<br />

Examples<br />

Get the status of the security system:<br />

GetSecuritySystemStatus()<br />

Force the security system to reload all users and groups from the authentication server:<br />

GetSecuritySystemStatus( 1 )<br />

GetUserFullName<br />

This function gets the full name (if any) of a specified user in the project security system.<br />

Function Group Execution Windows Embedded Thin Client<br />

GetUserFullNameSecurity Synchronous Supported Supported Supported<br />

Syntax<br />

GetUserFullName(strUserName,"tagUserFullName")<br />

strUserName<br />

The name of a user in the project security system.<br />

tagUserFullName<br />

The name of a tag (String type) that will receive the full name of the specified user. If the<br />

specified user does not have a full name defined, then the tag will receive an empty string ("").<br />

Note: The tag name must be enclosed in quotes, as shown in the syntax<br />

diagram, or else the project will try to get the value of the named tag.<br />

Returned value<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!