getQueryStringParms()
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 us 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
var parms = getQueryStringParms();
if (parms["mode"] == "test") { // if mode parameter is equal to "test"
pui.click("btnExit"); // click the exit button
}
Some documentation pages have recently moved to a new section: Profound AppDev. If you are having trouble finding specific pages, try the documentation search capability or reach out to our Support team!