template::util::list_of_ns_sets_to_multirow (public)
template::util::list_of_ns_sets_to_multirow -rows rows \ -var_name var_name [ -level level ]
Defined in packages/acs-templating/tcl/util-procs.tcl
Transform a list of ns_sets (e.g. produced by db_list_of_ns_sets) into a multirow datasource.
- Switches:
- -rows (required)
- The data to be transformed
- -var_name (required)
- The name of the multirow to create
- -level (optional, defaults to
"1"
)- How many levels up the stack to place the new datasource, defaults to 1 level up.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: upvar $level $var_name:rowcount rowcount $var_name:columns columns set rowcount [llength $rows] set i 1 foreach row_set $rows { ns_set put $row_set rownum $i upvar $level $var_name:$i row array set row [ns_set array $row_set] if {$i == 1} { set columns [array names row] } incr i }XQL Not present: Generic, PostgreSQL, Oracle