Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This function parses the current URL's query string and returns it as an object with name/value pairs.  The query string is the part of the URL that contains data to be passed to a web application.  The getQueryStringParms() API allows to retrieve the parameters passed to Profound UI.

Example:

The following example tests for the mode parameter on the query string.  For example, to run Profound UI in test mode, the URL may look like this: http://ibmi:808/profoundui/start?mode=test

Code Block
javascript
javascript

var parms = getQueryStringParms();
if (parms["mode"] == "test") {  // if mode parameter is equal to "test"
  pui.click("btnExit");  // click the exit button
}