Query_string during WebQueryOpen Agentt

Hello all!

I am new to Lotus am new to Domino Programming, but have come far in the past two weeks.

I have a form that has a webQueryOpen agent running.

I am trying to get the query_string while inside the agent, and I can’t seem to get there. The error message tells me that the object variable is not set.

My question is two fold.

  1. Is there a way to debug an agent while it’s running on the web?

  2. is the code below incorrect for getting the query_string?

Is it possible I am thinking the query string is something differnt than the http url? Which might be different than the url in the address bar in explorer?

I am using IE8, if that helps.

Here is the simplified code I am using.

Dim session As New NotesSession

Dim database As notesdatabase

Dim doc As NotesDocument

Dim result As Variant

Set database = session.CurrentDatabase

Set doc = session.DocumentContext

result = doc.QUERY_STRING(0)

Thanks for the help!

-Kris

Subject: Add a computed field

Try adding a computed field on the form: QUERY_STRING with the formula:

QUERY_STRING