template::list::get_rowcount (public)

 template::list::get_rowcount -name name

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

Gets the full number of rows retrieved from this template::list. This number can exceed number_of_pages * rows_per_page. If list is not paginated, size of the multirow will be returned. Multirow must exist for count to succeed on a not paginated list.

Switches:
-name (required)
Name of the list builder list for which you want the full number of rows.

Partial Call Graph (max 5 caller/called nodes):
%3 packages/categories/www/cadmin/category-usage.tcl packages/categories/ www/cadmin/category-usage.tcl template::list::get_rowcount template::list::get_rowcount packages/categories/www/cadmin/category-usage.tcl->template::list::get_rowcount packages/categories/www/categories-browse.tcl packages/categories/ www/categories-browse.tcl packages/categories/www/categories-browse.tcl->template::list::get_rowcount template::list::get_reference template::list::get_reference (public) template::list::get_rowcount->template::list::get_reference template::multirow template::multirow (public) template::list::get_rowcount->template::multirow template::paginator template::paginator (public) template::list::get_rowcount->template::paginator

Testcases:
No testcase defined.
Source code:
    # Get an upvar'd reference to list_properties
    get_reference -name $name

    if { $list_properties(page_size) eq "" || $list_properties(page_size) == 0 } {
        if {![template::multirow exists {*}$list_properties(multirow)]} {
            return {}
        }
        return [template::multirow size {*}$list_properties(multirow)]
    }

    return [template::paginator get_full_row_count $list_properties(paginator_name)]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: