Qv.Document.Object.Data.PageObject
Constructor
new PageObject(owner, size, startopt)
Note! Only available for Listboxes, Tableboxes, Charts and Extensions.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
owner | Object | Data-object. | |
size | Integer | Number of items visible per page. | |
start | Integer |
<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:
Name | Type | Description |
---|---|---|
page | Integer | The page to be displayed (starting from 1). |
Returns:
- Type
- void