Pagination Tag Use

Used In

HTML Layout Pages and Page Templates within a GEN:Table code generation tag.

Code Generation Tag Attributes

Attribute

Required

Description

Name

Yes

The name of this tag.  This name must be unique within the file and cannot contain spaces.

Type

Yes

The type of this tag.  There are ten different types of pagination controls split into two groups:

Display-only controls: These controls display information about the current page being displayed.

FirstItem

Displays the number of the first item display on the page.  For example if the 11th through the 20th items are displayed on a page, FirstItem corresponds to the number 11.

LastItem

Displays the number of the last item display on the page.  For example if the 11th through the 20th items are displayed on a page, LastItem corresponds to the number 20.

CurrentPage

Display the current page number.

TotalItems

Displays the total number of items returned by the query.  Not all of these items are displayed on the page.

TotalPages

Displays the total number of pages based on the current page size.

Action controls:  The action controls are attached to a button or a text box to enable the application user to change the items displayed on the table.

FirstPage

Displays the first page when the attached button is clicked.

LastPage

Displays the last page when the attached button is clicked.

NextPage

Displays the next page when the attached button is clicked.

PreviousPage

Displays the previous page when the attached button is clicked.

PageSize

Displays the number of items on a page in a text box.  An application user can change the number of items and can press the attached Go button.

Examples

     <GEN:Table Name=”EmployeesTable”>

              <!-- pagination control -->
              <GEN:Button Name=”FirstPageButton”/>

              <GEN:Pagination Name=”FirstPage” Type=”FirstPage”/>


              < GEN:Button Name=”PreviousPageButton”/>

              < GEN:Pagination Name=”PreviousPage” Type=”PreviousPage”/>


              < GEN:Pagination Name=”CurrentPage” Type=”CurrentPage”/>


              < GEN:Button Name=”NextPageButton”/>

              < GEN:Pagination Name=”NextPage” Type=”NextPage”/>


              < GEN:Button Name=”LastPageButton”/>

              < GEN:Pagination Name=”LastPage” Type=”LastPage”/>
              <table>

              …
                 <GEN:ItemTemplate>
                        …

                </GEN:ItemTemplate>

                        …

             </table>
     </GEN:Table>

See Also

Pagination Tag