Qv.Document.Object.Data.PageObject

Constructor

new PageObject(owner, size, startopt)

Note! Only available for Listboxes, Tableboxes, Charts and Extensions.
Parameters:
NameTypeAttributesDescription
ownerObjectData-object.
sizeIntegerNumber of items visible per page.
startInteger <optional>
Starting page.
Example
this.Data.Page = new this.Data.PageObject(this.Data, 10, 1);

Members

Count :Integer

Number of pages
Type:
  • Integer

Current :Integer

Current page
Type:
  • Integer

StartItem :Integer

Index to start reading data from in order to display data for the current page
Type:
  • Integer
Example
var item = this.Data.Page.StartItem();
var text = this.Data.Rows[item][1].text

Methods

Next() → {void}

Get data for next page
Returns:
Type
void

Prev() → {void}

Get data for previous page
Returns:
Type
void

Set(page) → {void}

Get data for specific page
Parameters:
NameTypeDescription
pageIntegerThe page to be displayed (starting from 1).
Returns:
Type
void