Passing Data from a Web Form to a Web Agent

As discussed in the “Deploying and Utilizing LotusScript Agents” section later in this chapter, when an agent is run from the WebQueryOpen and WebQuerySave events, the agent has access to all items in the document. Agents can access this data as they would any field value.

Agents called by a URL have access to a domino document, but only the document's CGI variables. (You learn more about these variables in “Using CGI Variables,” later in this chapter.) You can add parameters to the URL command ?OpenAgent to give the agent access to this data. An example:

http://Host/Database/AgentName?OpenAgent&Dept="Marketing"&Mgr="AnitaKnapp"

The URL can be dynamically created with JavaScript.

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.