template::element::querygetall (public)
template::element::querygetall element_ref
Defined in packages/acs-templating/tcl/element-procs.tcl
Get all values for an element, performing any transformation defined for the datatype.
- Parameters:
- element_ref (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: upvar $element_ref element set datatype $element(datatype) set transform_proc "::template::data::transform::$datatype" if {[namespace which $transform_proc] eq ""} { set values [ns_querygetall $element(id)] # QUIRK: ns_querygetall returns a single-element list {{}} for no values if { [string equal $values {{}}] } { set values [list] } } else { set values [template::data::transform::$datatype element] } # Spell-checker array set spellcheck [template::util::spellcheck::spellcheck_properties -element_ref element] if { $spellcheck(perform_p) } { set values [template::data::transform::spellcheck -element_ref element -values $values] } return $valuesXQL Not present: Generic, PostgreSQL, Oracle