template::wizard::get_param (public)

 template::wizard::get_param name

Defined in packages/acs-templating/tcl/wizard-procs.tcl

Get a wizard's param value

"template::wizard get_param" has the advantage over ad_page_contract of getting the param value during the response time. What does this mean? It will properly get the current value of the param which was set by "template::wizard set_param", while ad_page_contract will not pick that up since it will get what is the request http var value. This is because "template::wizard get_param" gets the value from the Tcl var while ad_page_contract gets the value from the http var. So while processing in Tcl that value may change.

Parameters:
name (required)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 template::wizard::get_visited_step template::wizard::get_visited_step (public) template::wizard::get_param template::wizard::get_param template::wizard::get_visited_step->template::wizard::get_param template::adp_level template::adp_level (public) template::wizard::get_param->template::adp_level

Testcases:
No testcase defined.
Source code:

    set level [template::adp_level]

    upvar #$level wizard:params params

    if { [info exists params($name)] } {
        set value $params($name)
    } else {
        set value [ns_queryget $name]
    }
    return $value
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: