Categories





IM me on the bleedyellow.com sametime community - jeremy.hodge@zetaone.com

« Getting a parameter from the URL of an XPage | Main| YellowBubble.org Beta Testing Approaches, and a CONTEST!!! »

xPages Bug with XSPUrl.GetParameter() ??

Category
0
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";
}


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

Gravatar Image1 - This is known bug in 8.5.0

Should be fixed in 8.5.1

Post A Comment