I have a form. When it opens, it has a list of information in a table. In the table, the messageid is an a href. When this is clicked on, it runs an agent passing the messageid. This part works fine. I pull the messageid from the query string to determine if the document with that messageid exists or not. If it doesn’t, I print the url with OpenForm&messageid = messageid. On the WebQueryOpen, I am trying to grab the messageid from the url, but I can’t get a handle on the query string. It is blank when I try to get it from the script.
There are 3 frames in this site. The mainframe holds the document I am opening. I tried putting an onLoad event for the form to put the location.href in a field. This works. Why can’t I get the query_string in the WebQueryOpen?
Any ideas would be appreciated.
Subject: Question?
Are you able to get the query_string value after the form opens?
Subject: RE: Question?
Hi Michael,
Thanks for taking the time to respond to my post. I assumed you meant once I open the document, if I had a field that is set to query_string, will it populate and the answer is yes, it does.
What I was trying to do is once someone clicked on the a href, it would run an agent passing a message id. The agent would check if that document existed. If it didn’t already exist, it would be created. How I was creating it was printing the url with OpenForm& msgid=123456. Using WebQueryOpen, I was trying to strip off the query_string and set some values using it on the document. Within the WebQueryOpen statement, I couldn’t get anything from the query string. I even tried setting a field on the form with the contents of the query_string from the WebQueryOpen agent.
Any ideas on why I can’t get the query_string from the webqueryopen agent?
Subject: RE: Question?
Sorry to waste your time. I must have been in a fog yesterday when I was trying to pull off the query_string. I’ve got it, no problem. Thanks for your help Michael.
Patti