Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to read query_string from WQO?

3 views
Skip to first unread message

PS

unread,
Jul 25, 2009, 3:33:08 PM7/25/09
to
Hello All,

I've got a problem accessing query_string (the part after '?' in URL)
from the level of WebQueryOpen Java agent.
It does work, when I access the agent directly with db.nsf/my-agent?
OpenAgent&name=value.
In such situations I would use:

doc.getItemValue("QUERY_STRING").elementAt(0).toString();

to fetch it...
Is it not possible at all from WQO level?

I really need to show/hide some part of a form to a user based on the
ID that is supplied in the URL, then to be processed by the agent...

Kind regards,
PS

PS

unread,
Jul 27, 2009, 3:25:14 AM7/27/09
to
Just for those who might encounter the same problem in the future.
Part of documentation, that explains it:
"(..) In the case of RunAgent or ToolsRunMacro, CGI values are
available but not automatically. The form backing up the current
document must contain a field named after each desired CGI variable."

I did read it before I posted, but it didn't work... maybe I did some
simple mistake, that caused an error, but, in the end, when I tried it
for a second time, it did work :)

0 new messages