Lotus Script Agents - Passing Arguments

When using the WebQuerySave option how do you pass arguments to the Lotus Script Agent?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

What arguments do u wan't to pass..?

up2longAuthor Commented:
Any arguments.  I have variables that I've created and want to use them in an agent.  Unfortunately, I can't find any documentation on how to pass them.
There was a question about this like 3 months ago which I answered.  Anyway, passing arguments or parameters to agents is done in the http request to open the agent.  U specify it like a cgi variable in the URL with the '&' for example:
so the parameters in here are login=1 and user=john.  To check them now in the agent, u have to use the document context preperty of the notessession class.  And get the CGI variable Query_string.  This variable will hold everything after the '?' in the URL.  So it will contain "?openagent&login=1&user=john".  u then have to parse this to get your values with string manipulation functions like left, right, mid, instr and so on.
Simple code:
dim s as notessession
dim doc as notesdocument
set doc = s.documentcontext
messagebox doc.query_string(0)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

sorry the first line of code should be:
dim s as new notessession

And I made a search on that question, I think it was deleted coz at that time the asker (I recall it was Anthony) refused the answer.  But it was a good discussion.
up2longAuthor Commented:
This is something that I've already done.  Unfortunately, it is not as clean as I wanted it to be.  It would be soooo much nicer if could pass args directly.  

In my case I've done as outlined above and I created a variable that points to a document in the database.  I then go to that document to find the user ID and correct password.  I feel like this is such a hassle and would have ultimately been better if I could have just passed the variables.

this is web standard so far, or u probably would have to go into JAVA.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.