5 pts.
 Query_String value empty with agent URL from xpage
Hi there,  
I'm developing an application using xpages in domino 8.5.2 running on a windows 2003 server.
My problem is this. I have a xpage on which I added an onload event which calls a client side javascript library.
XSP.addOnLoad(function(){getMyValues()});
  
This function (used for displaying a Fusion Chart swf chart) then calls a lotusscript agent with the fusion charts setDataURL api call. The url contains the agent name and the parameters like
"/dbpath/agent?openAgent?val1=?val2="
.The agent returns xml.
The problem is that when I test the agent via a browser, I can add the parameters using the "&" sign and this works fine, but from within my xpage, I have to use the "?" sign for the agent to get the Query_String values.
When both val1 and val2 is empty I have no problem as the Query_String value contains all my parameters. The moment I add values to the parameters I get the following error:
2011/02/02 11:09:47 AM  HTTP Web Server: Invalid URL Exception [/myProject/dbpath/myProject.nsf/ResourceAllocation?openagent?sDate=11/02/01?eDate=11/02/28]
I have also tried to change the data to normal string values like sDate=test1?eDate=test2 thinking that the "/" in the value was the problem, but this also gives me the exact same error.
What am I missing? Please help.
Thanks
Corne


Software/Hardware used:
Lotus Domino 8.5.2 XPages
ASKED: February 2, 2011  9:49 AM
UPDATED: February 2, 2011  2:32 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _