template::util::multirow_to_list (public)
template::util::multirow_to_list [ -level level ] name
Defined in packages/acs-templating/tcl/util-procs.tcl
generate a list structure representative of a multirow data source NB: if the multirow is generated by db_multirow, db_multirow must be called with the -local option
- Switches:
- -level (optional, defaults to
"1"
)- Parameters:
- name (required)
- the name of an existing multirow data source
- Returns:
- a representation of a multirow data source as a list, suitable for passing by value in the form { { row } { row } { row } ... }
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: upvar $level $name:rowcount rowcount set rows [list] for { set i 1 } { $i <= $rowcount } { incr i } { upvar $level $name:$i row lappend rows [array get row] } return $rowsXQL Not present: Generic, PostgreSQL, Oracle