getQueryString (XSPUrl - JavaScript™)
Gets the full query string (including the leading question mark) of the URL.
Defined in
XSPUrl (JavaScript)Syntax
getQueryString() : string
Return value | Description |
---|---|
string |
The query string. |
Example
This example prints the query string of the URL for the current context.function p(stuff) {
print("<<<" + stuff + ">>>");
}
var url : XSPUrl;
try {
url = context.getUrl();
p("getQueryString = " + url.getQueryString());
} catch(e) {
p("Error = " + e);
}
Print output from the example might be as follows:
<<<getQueryString = ?WP_BUSINESS_OBJECT_DATA=rp0707test1&WP_BUSINESS_OBJECT=ejb%2Fcom%2Fibm%2Fworkplace%2Fdesigner%2Fejb%2FDesignerComponent&action=openDocument&database=rp0707test1&schema=Schema_form1&id=3fb66696c9e31&autoedit=true>>>