template::util::list_to_multirow (public)

 template::util::list_to_multirow name rows [ level ]

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

populate a multirow data source from a list string gotten from a call to template::util::multirow_to_list

Parameters:
name (required)
the name of a multirow data source
rows (required)
a representation of a multirow data source as a list, suitable for passing by value in the form { { row } { row } { row } ... }
level (optional, defaults to "1")
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 packages/acs-api-browser/www/content-page-view.tcl packages/acs-api-browser/ www/content-page-view.tcl template::util::list_to_multirow template::util::list_to_multirow packages/acs-api-browser/www/content-page-view.tcl->template::util::list_to_multirow packages/acs-automated-testing/www/admin/proc-coverage.tcl packages/acs-automated-testing/ www/admin/proc-coverage.tcl packages/acs-automated-testing/www/admin/proc-coverage.tcl->template::util::list_to_multirow packages/acs-lang/www/admin/index.tcl packages/acs-lang/ www/admin/index.tcl packages/acs-lang/www/admin/index.tcl->template::util::list_to_multirow packages/categories/www/cadmin/index.tcl packages/categories/ www/cadmin/index.tcl packages/categories/www/cadmin/index.tcl->template::util::list_to_multirow packages/forums/lib/message/post.tcl packages/forums/ lib/message/post.tcl packages/forums/lib/message/post.tcl->template::util::list_to_multirow

Testcases:
No testcase defined.
Source code:

    upvar $level $name:rowcount rowcount
    set rowcount [llength $rows]
    set rownum 1

    foreach rowlist $rows {
        lappend rowlist rownum $rownum
        upvar $level $name:$rownum row
        array set row $rowlist
        incr rownum
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: