template::paginator::get_row_last (public)

 template::paginator::get_row_last name pagenum

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

Calculates the last row displayed on a page.

Parameters:
name (required)
The reference to the paginator object.
pagenum (required)
A number ranging from one to the number of pages in the query result, representing the number of a page therein.
Returns:
A number ranging from one to the number of rows in the query result, representing the number of the last row on the specified page.

Partial Call Graph (max 5 caller/called nodes):
%3 template::paginator::get_reference template::paginator::get_reference (private) template::paginator::get_row_last template::paginator::get_row_last template::paginator::get_row_last->template::paginator::get_reference

Testcases:
No testcase defined.
Source code:
    get_reference

    set page_count $properties(page_count)

    if {$page_count == $pagenum} {
        return $properties(row_count)
    } else {
        return [expr {$pagenum * $properties(pagesize)}]
    }
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-templating/tcl/paginator-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: