Passing values to agents from a web browser

I’m not having much luck in this area.

I want to know my options for getting a LotusScript agent to run from a web browsers and passing it values.

It would be really nice if I could get ?OpenAgent&value=MyValue to pass “MyValue” to the agent, but alas I can not. Not sure what I’m doing wrong.

I don’t really want to put the values into a field and run the agent using WebQuerySave, especially as I want the agent to run from a view using a ViewTemplate, meaning that unless there is only one view associated with that template (and I use ?OpenForm to look at it), the form will be in read mode and I won’t be able to use javascript to put “MyValues” into a field for the WebQuerySave agent to pick up. If that makes sense!

I would quite like to know what my different options are here. Links to relevant web pages would also be appreciated.

Thanks

Ross

Subject: Passing values to agents from a web browser

To pass values,

http://server/db.nsf/agentName?OpenAgent&param1=value

To fetch values,

dim sess as New NotesSession

dim doc as NotesDocument

dim valuePasssed as String

set doc = sess.DocumentContext

Let valuePassed = StrRight(doc.Query_String_Decoded(0),“&param1=”)

hope this helps !!

Ashish

Subject: Passing values to agents from a web browser

In the designer help look for CGI. There are a number of helpful documents including a table that shows all the CGI values Domino reports on.

One little thing they don’t prepare you for is that Domino reports path_info as the path plus the query_string data. If you want the true path_info value you have to use the undocumented cgi_path_info value.