PROGRAMMING OVERVIEW AND USER INTERFACE


Using Script Libraries
Script libraries can contain LotusScript, Java, or JavaScript.

The scope of a script library is the current database. All scripts in a database can avail themselves of the LotusScript, JavaScript, or Java in a library in that database. However, the library is lost to scripts outside the database. For example, if a button in a document uses a script library and you mail the document to or paste it into another database that does not have the same script library, the script fails. If a script attempts to use a library not in the current database, the error message, "Error loading USE or USELSX module" displays.

Release 8 builds upon the existing concept of script libraries, to make Domino web services available to applications through web service enabled script libraries. Each web service enabled LotusScript or Java script library contains generated code, to be used by your code, capable of calling a single web service. Once a web service enabled script library is created, it can be used in many different contexts, such as agents and event handling code, within Domino applications.

Note The use of web service enabled script libraries is new with Release 8.

To create a script library

1. Choose Create - Design - Script Library

2. Choose one of the following:


3. To name the library, choose Edit - Properties.
4. Enter the script in the Script pane. 5. Choose File - Save, then File - Close to save and close the library.

See the following topics for instructions on incorporating a library:


To access an existing script library

1. From the Design pane, expand Shared Code and select Script Libraries.


2. Select the script library you want to view.
See Also