removeAllParameters (XSPUrl - JavaScript™)
Removes all query string parameters.
Defined in
XSPUrl (JavaScript)Syntax
removeAllParameters() : void
Example
This example sets parameters for a new URL then removes them all.function p(stuff) {
print("<<<" + stuff + ">>>");
}
var url : XSPUrl;
try {
url = new XSPUrl("");
url.setScheme("http");
url.setHost("myhost.ibm.com");
url.setPort(10038);
url.setPath("/wps/PA_cow3tik/page1.xsp");
url.setParameter("WP_BUSINESS_OBJECT_DATA", "rp0707test1");
url.setParameter("WP_BUSINESS_OBJECT", "ejb/com/ibm/component/designer/ejb/DesignerComponent");
url.setParameter("action", "openDocument");
url.setParameter("database", "rp0707test1");
url.setParameter("schema", "Schema_form1");
url.setParameter("id", "3fb66696c9e31");
url.setParameter("autoedit", "true");
url.removeAllParameters();
p(url.toString());
} catch(e) {
p("Error = " + e);
}
Print output from the example is as follows:
<<<http://myhost.ibm.com:10038/wps/PA_cow3tik/page1.xsp>>>