14. ECMA Script Editor: What's New

(Home)     Previous     Next

1. ECMAScript Editor

Designer 2.0 M5 supports the new ECMAScript objects in Identity Manager 3.5. ECMAScripts functions can be invoked from DirXML Script. These functions can now be defined as ECMAScript resources wherever DirXML Scripts can be defined; for example, on a driver, Publisher channel, Subscriber channel, or library.

If the version number of any Server object contained in a driver set is earlier than Identity Manager 3.5, Designer prevents the creation of new ECMAScript resources and displays the following dialog box:



To change the version of a Server object, edit the properties of the server.

A new ECMAScript resource can be defined via an RMB menu on a driver, Publisher channel, Subscriber channel, or library. After the ECMAScript Wizard is finished, an empty script is created. The ECMAScript editor launches when the ECMAScript opens.



The window displays a script editor to the right, filled with some finance functions. To the left of the editor is the Functions and Variables outline pane. A text shell is below the editor.You can test the functionality of the scripts there.

The ECMAScript editor has two views: The Problems view and the Tasks view. Figure 1-116 illustrates the Problems view. As you type, the compiled errors appear at the bottom. These errors also appear in the Project Checker. Double clicking on the Problems view takes the cursor to the right line number. If you create ECMAScripts or test ECMAScripts in the shell, you can make use of an ECMA expression builder. This expression builder can be invoked anywhere in the script area on RMB. When you clicking Show Expression Builder, an image is shown.



You can invoke the Expression Builder from script area or from shell, to facilitate creation of scripts. The Expression Builder has 3 panels. All functions appearing in the ECMAScript appear in the left side pane. The middle pane contains the standard ECMA functions and the DirXML Script functions. The last pane shows standard ECMAScript operators.

For more information on how ECMAScript resources function and how to use them, refer to Policies in Designer 2.0.




(Home)     Previous     Next