guides:o4w:o4w_api:o4wtablepageroptions

O4WTablePageOptions Function

Specifies pagination and sorting options for table contents. When specified, the default pagination subroutine will be applied to the current table (unless <overridePager> is set to the name of a different pagination subroutine to use).

O4WTABLEPAGEROPTIONS(pagerLocn,rowsPerPage,sortCols,maxRows,currPage,addlOptions,overridePager)

The function has the following parameters:

ParameterDescription
pagerLocnThe parameter should be set to "0" to have the pagination display appear above the table, and "1" to appear below the table.
rowsPerPageSet to the number of rows/page that should initially be displayed.
sortColsContains an @VM-delimited list of the column numbers where sorting should be allowed (the first column of the table is "1", the second column is "2", etc.).
maxRowsIf known, maxRows should be set to the total number of rows to be displayed in the table.
currPageThe currPage parameter should be set to the current page number ("1" initially, and then as appropriate after any callbacks for pagination/sorting have been handled).
addlOptionsAny additional options needed by the pagination routine should be passed with the addlOptions parameter.
overridePagerThe name of a pagination subroutine to be used when applying page options to the table.

Returns the option information to use immediately with a display element or input control.

  • guides/o4w/o4w_api/o4wtablepageroptions.txt
  • Last modified: 2024/06/19 20:19
  • by 127.0.0.1