xPages Bug with XSPUrl.GetParameter() ??
Category xpages
Ok, here's the scenario ... I have a document based on FormA ... FormA has the property "Use XPage instead" set to an xPage .... open the form via the following syntax:
http://www.yourdomain.com/database.nsf/view/DOCID?opendocument&tab=2
then the following code WILL NOT return a value for the 'tab' parameter
BECAUSE, if you do url = context.getUrl(); then look at the url's value for the QueryString, you get this:
?documentId=D35C5CF800662F5D852575E900560624&action=openDocument
Guess I just need to get used to using sessionScope more ...
Ok, here's the scenario ... I have a document based on FormA ... FormA has the property "Use XPage instead" set to an xPage .... open the form via the following syntax:
http://www.yourdomain.com/database.nsf/view/DOCID?opendocument&tab=2
then the following code WILL NOT return a value for the 'tab' parameter
var
url:XSPUrl;
try {
url = context.getUrl();
var tabnum = url.getParameter('tab');
return "tab: " + tabnum;
} catch(e) {
return "whoops";
}
try {
url = context.getUrl();
var tabnum = url.getParameter('tab');
return "tab: " + tabnum;
} catch(e) {
return "whoops";
}
BECAUSE, if you do url = context.getUrl(); then look at the url's value for the QueryString, you get this:
?documentId=D35C5CF800662F5D852575E900560624&action=openDocument
Guess I just need to get used to using sessionScope more ...














- 
Comments
Should be fixed in 8.5.1
Posted by Paul T. Calhoun At 11:26:54 PM On 07/10/2009 | - Website - |