INTEGRAL DSL Reference Guide
Jump directly to:
::my.app.GetQueryVar(string, default_val = "")
This function returns the value of the requested query string variable.
Parameters
string
A string containing the name of the query string variable to return.
default_val
A string containing the default value of the query string variable.
Return Value
The function returns a string containing the value of the requested variable, if that variable is found in the query string. If the variable is not found in the query string, the function returns default_val.
Example 1
local first_name = ::my.app.GetQueryVar("fname");
Example 2
local month_name = ::my.app.GetQueryVar("month_name", "January");
Example 3
local month_number = ::my.app.GetQueryVar("month_num", 1).tointeger();
Example 4
local format_id = ::my.app.GetQueryVar("format", DX_FORMAT_PDF).tointeger();