template::paginator::get_row (public)

 template::paginator::get_row name pagenum

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

Calculates the first row displayed on a page.

Parameters:
name - The reference to the paginator object.
pagenum - 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 first row on the specified page.

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

Testcases:
No testcase defined.
Source code:
    get_reference

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

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