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):
%3 packages/workflow/www/admin/workflow-ae.tcl packages/workflow/ www/admin/workflow-ae.tcl template::util::multirow_to_list template::util::multirow_to_list packages/workflow/www/admin/workflow-ae.tcl->template::util::multirow_to_list packages/workflow/www/admin/workflow-clone.tcl packages/workflow/ www/admin/workflow-clone.tcl packages/workflow/www/admin/workflow-clone.tcl->template::util::multirow_to_list

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 $rows
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: