template::list::element::get_reference (public)

 template::list::element::get_reference -list_name list_name \
    -element_name element_name [ -local_name local_name ] [ -create ]

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

upvar the list element to the callers scope as $local_name

Switches:
-list_name (required)
-element_name (required)
-local_name (optional, defaults to "element_properties")
-create (optional, boolean)

Partial Call Graph (max 5 caller/called nodes):
%3 template::list::element::create template::list::element::create (public) template::list::element::get_reference template::list::element::get_reference template::list::element::create->template::list::element::get_reference template::list::element::get_property template::list::element::get_property (public) template::list::element::get_property->template::list::element::get_reference template::list::element::render template::list::element::render (public) template::list::element::render->template::list::element::get_reference template::list::element::set_property template::list::element::set_property (public) template::list::element::set_property->template::list::element::get_reference template::list::format::create template::list::format::create (public) template::list::format::create->template::list::element::get_reference template::adp_level template::adp_level (public) template::list::element::get_reference->template::adp_level template::list::element::get_refname template::list::element::get_refname (public) template::list::element::get_reference->template::list::element::get_refname template::list::get_reference template::list::get_reference (public) template::list::element::get_reference->template::list::get_reference

Testcases:
No testcase defined.
Source code:
    # Check that the list exists
    template::list::get_reference -name $list_name

    set refname [get_refname -list_name $list_name -element_name $element_name]

    if { !$create_p && ![uplevel \#[template::adp_level] [list info exists $refname]] } {
        error "Element '$element_name' not found in list '$list_name'"
    }

    uplevel upvar #[template::adp_level$refname $local_name
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: