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 Image5 - Discourage litigation. Persuade your neighbors to compromise whenever you can. As a peacemaker the lawyer has superior opportunity of being a good man. There will still be business enough.

Gravatar Image4 - Eccentricity is not, as dull people would have us believe, a form of madness. It is often a kind of innocent pride, and the man of genius and the aristocrat are frequently regarded as eccentrics because genius and aristocrat are entirely unafraid of and uninfluenced by the opinions and vagaries of the crowd.

Gravatar Image3 - The only limit to our realization of tomorrow will be our doubts of today. Let us move forward with strong and active faith.

Gravatar Image2 - The only limit to our realization of tomorrow will be our doubts of today. Let us move forward with strong and active faith.

Gravatar Image1 - This is known bug in 8.5.0

Should be fixed in 8.5.1

Post A Comment