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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.223.107.32