template::request::create (public)
template::request::create [ args... ]
Defined in packages/acs-templating/tcl/request-procs.tcl
Create the request data structure. Typically called at the beginning of the code for any page that accepts query parameters.
Options:
- -params
- A block of parameter declarations, separated by newlines. Equivalent to calling set_param for each parameter, but requiring slightly less typing.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: template::form::create request {*}$args set level [template::adp_level] # check for params so they can be created upvar #$level request:properties opts if { [info exists opts(params)] } { # strip carriage returns regsub -all -- {\r} $opts(params) {} param_data foreach param [split $param_data "\n"] { set param [string trim $param] if {$param eq {}} { continue } set_param {*}$param } }XQL Not present: Generic, PostgreSQL, Oracle