How to get the querystring from web agent. WebQueryopen querystring. Get paramters using agent. Document context.
How to get the querystring from web agent. WebQueryopen querystring. Get paramters using agent. Document context.
| Answer | This code should help with how to get the querystring paramters from the document context from a web based agent.
Set Session = New NotesSession
Set WebDocument = Session.DocumentContext
username = session.CommonUserName
QueryString = Strright(WebDocument.Query_String_Decoded(0),"&")
ParamList = Evaluate ({@Explode("} & QueryString & {"; "&")})
thestart = 0
For vLoop = 0 To Ubound(ParamList)
Select Case Strleft(Lcase(ParamList(vLoop)), "=")
Case "param1":
x1 = Strright(ParamList(vLoop), "=")
Case "param2":
x2 = Cint(Strright(ParamList(vLoop), "="))
Case "param3":
x3 = Cint(Strright(ParamList(vLoop), "="))
Case Else:
End Select
Next |
| Attachments | -none- |
| Applies to versions | |
| FAQ Provided By | Steven Charles Robinson |
| Credit | |
 |  |
|
|