Deploying and Utilizing LotusScript Agents

LotusScript and Java are usually used to write agents for the Web. Simple Actions are not supported and @Functions don't allow data to be returned.

LotusScript agents are executed from the WebQueryOpen and WebQuerySave events (as discussed in the “Deploying and Utilizing LotusScript” section in Chapter 14) and also from the OpenAgent URL command.

The NotesSession.DocumentContext property returns a NotesDocument when a LotusScript agent is executed from these events. The NotesDocument contains Web session information, CGI variables associated with the session, and access to all document items. The following code shows how to access these CGI variables:

 Dim session As New NotesSession Dim context As NotesDocument ...

Get Lotus Notes® and Domino® 6 Application Development Exam Cram™ 2 (Exams 610, 611, and 612) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.