There are two types of scripts that can be executed at the application level. The OnApplicationLoadApplicationGlobal function allows you to execute a script the very first time the application is opened and is only executed once per Web Server start. The OnApplicationLoadApplicationSession function allows you to execute a script the first time and application is opened for a user's session.
In order to use Unity scripting, you must be licensed with the Unity Automation API license.
To configure a Unity script at the application level the first time:
- Select an application in the Repositories pane.
- Select the Events tab.
- Select an Event from the drop-down list. OnLoadApplicationGlobal and OnLoadApplicationSession are available.
- Select Unity Script and select a script from the drop-down. You can create a new script by selecting the drop-down on the right and then selecting New.
- Click Add. The Create Unity Script dialog box is displayed.
- Enter a Name and a Description for the script.
- Select the scripting Language you are going to use from the drop-down list.
- Click Next.
- Select the user group to which you want to grant rights.
- Click Add.
- Select the User Group and select the View check box to grant viewing rights and select Modify to grant modify rights.
- Add and configure additional user group as necessary.
- Click Next.
- Click Finish. A tab where the script can be written is displayed.
In addition you can disassociate a script by selecting it in the Events tab and clicking Remove.
When setting a boolean value, only True and False are valid values.
For more information on Unity Scripting, see Unity Scripting in the Hyland SDK.