Query_string is not captured

Posted on 2002-07-01
Last Modified: 2013-12-18
in web enabled database one documet is composed and it has querystring field (which is key for document)capturing from previous form value.

it has one button that is used to send mail.

so in background agent i am trying to  capture the querystring field to get exact document from database. and send contents of that docuemnt to the fixed usr.

but my problem is if i hide the field query_string on the form then agnet cannot be ableto capture that field value.

is there any workaround

any help would be appreciated.

Question by:shrihalbe
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 24

Accepted Solution

HemanthaKumar earned 100 total points
ID: 7122118
Generate HTML for all fields in the default tab of the form property dialog

LVL 24

Expert Comment

ID: 7122123
Use "Generate HTML for all fields" in the default tab of the form property dialog

LVL 10

Expert Comment

ID: 7123203
Hello shrihalbe,

to capture Query_String or Query_String_Decoded you need a second field where you have to copy the CGI field to be stored for later processing.

For example, make a new field named LastQueryString, make it Computed and place this formula in its Value formula:
FIELD Query_String:=Query_String;
FIELD LastQueryString:=LastQueryString;

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 10

Expert Comment

ID: 7123240
Sorry, correct Value formula for field LastQueryString is:
FIELD Query_String:=Query_String;
FIELD LastQueryString:=LastQueryString;


Expert Comment

by:Jean Marie Geeraerts
ID: 7123852
Yes, the Query_String property in the DocumentContext document used in the agent refers to the Query String used to start the agent IIRC.
LVL 10

Expert Comment

ID: 7123905
Not only to start the agent but any URL having a question mark in it, provide at request time (again: at REQUEST time) the Query_String CGI variable.

To get this CGI variable it is not necessary to have the html code for the field. It is only necessary to have a field present on the form with the name Query_String to be able to fetch the CGI value and compute other fields with its value.
For direct agent calls it is of course not possible and not necessary to define the field but still possible to obtain it's value from: doc.Query_String(0)


Author Comment

ID: 7127240
THanks Hemnath

LVL 24

Expert Comment

ID: 7127384

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question