In a Web application, returns the current URL command and parameters, or the value of one of the parameters.
@UrlQueryString( parameterName )
parameterName
Text. Optional. The name of a parameter in the URL command.
query
Text or text list.
@UrlQueryString is useful in formulas that run in the context of a browser.
This function can be used to compose dynamic DB2® query views in Web applications.
The Notes® client always returns null for this formula.
http://www.acme.com/marketing.nsf?OpenForm&ID=986574&Category=Golf
@UrlQueryString
returns the list:
@UrlQueryString("Category")
returns the text:
URLParam := @UrlQueryString("Dept");
Clause := @If( URLParam ="" ; "" ; " AND DeptName='"+ @Word(URLParam; "'"; 1) +"'");
"SELECT D.DeptID , D.DeptName As DeptName , E.DeptID , E.Lastname AS Lastname FROM " + T1 +" AS D, " + T2 + " AS E WHERE D.DeptID=E.DeptID" + Clause