gotoPreviousPage
| Method | gotoPreviousPage() | Jump to previous page |
|---|---|---|
| Parameter | - | - |
| Return value | void | |
| Example | Example 1: If the obtained report block object is defined as report , jump to the previous page Example 2: Jump to the previous page in a general report Example 3: Jump to the previous page in the report0 report block in the dashboard _g().getWidgetByName('report0').gotoPreviousPage(); | |
Application example | Customize a button "Previous Page" to jump to the previous page of the report when clicked: Click to download the template:
| |
| Mobile | Support mobile terminal | |
gotoNextPage
| Method | gotoNextPage() | Jump to next page |
|---|---|---|
| Parameter | - | - |
| Return value | void | |
| Example | Example 1: If the obtained report block object is defined as report , jump to the next page Example 2: Jump to the next page in a general report Example 3: Jump to the next page in the report0 report block in the dashboard _g().getWidgetByName('report0').gotoNextPage(); | |
Application example | Customize a button "Next Page" to jump to the next page of the report when clicked: Click to download the template:
| |
| Mobile | Support mobile terminal | |
gotoLastPage
| Method | gotoLastPage() | Jump to the last page |
|---|---|---|
| Parameter | - | - |
| Return value | void | |
| Example | Example 1: If the obtained report block object is defined as report , jump to the last page Example 2: Jump to the last page in a general report Example 3: Jump to the last page in the report0 report block in the dashboard _g().getWidgetByName('report0').gotoLastPage(); | |
Application example | Customize a button "Last Page" to jump to the last page of the report when clicked: Click to download the template:
| |
| Mobile | Support mobile terminal | |
gotoFirstPage
| Method | gotoFirstPage() | Jump to the first page |
|---|---|---|
| Parameter | - | - |
| Return value | void | |
| Example | Example 1: If the obtained report block object is defined as report , jump to the first page Example 2: Jump to the first page in a general report Example 3: Jump to the first page in the report0 report block in the dashboard _g().getWidgetByName('report0').gotoFirstPage(); | |
Application example | Customize a button "First Page" to jump to the first page of the report when clicked: Click to download the template:
| |
| Mobile | Support mobile terminal | |
gotoPage
| Method | gotoPage(pageNumber) | Jump to the specified page |
|---|---|---|
| Parameter | pageNumber:number | The page number of the specified page, number |
| Return value | void | |
| Example | Example 1: If the obtained report block object is defined as report , jump to page 3 Example 2: Jump to page 3 in general report Example 3: report0 report block in dashboard jumps to page 3 _g().getWidgetByName('report0').gotoPage(3); | |
Application example | Customize a button "Page 3" to jump to the third page of the report when clicked: Click to download the template:
| |
| Mobile | Support mobile terminal | |
getCurrentPageIndex
| Method | getCurrentPageIndex() | Get page number of the current page |
|---|---|---|
| Parameter | - | - |
| Return value | number | Current page number, number |
| Example | Example 1: If the obtained report object is defined as report , get the current page number of the report object Example 2: Get the page number of the current page in a general report Example 3: Get the page number of the current page of the report0 report block in the dashboard _g().getWidgetByName('report0').getCurrentPageIndex(); | |
Application example | Customize a button "View Page Number" to view the current page number of the report when clicked: Click to download the template: View page number of current page.cpt
| |
| Mobile | Support mobile terminal | |
getReportTotalPage
| Method | getReportTotalPage() | Get the total number of pages |
|---|---|---|
| Parameter | - | - |
| Return value | number | Total number of report pages, number |
| Example | Example 1: If the obtained report object is defined as report , obtain the total number of pages of the report object Example 2: Obtain the total number of report pages in a general report Example 3: Get the total page number of the report0 report block in the dashboard _g().getWidgetByName('report0').getReportTotalPage(); | |
Application example | Customize a button "View Total Page Number" to view the total page number of the report when clicked: Click to download the template:
| |
| Mobile | Support mobile terminal | |
currentPageIndex
| Attribute | currentPageIndex | The page number of the current page of the report |
|---|---|---|
| Parameter | - | - |
| Return value | number | page number of the current page, number |
| Example | Example 1: If the acquired report object is defined as report , the current page number of the report object Example 2: The current page number of a general report Example 3: The page number of the current page of the report0 report block in the dashboard _g().getWidgetByName('report0').currentPageIndex; | |
Application example | Customize a button "View Page Number" to view the current page number of the report when clicked: Click to download the template: View page number of current page.cpt
| |
| Mobile | Support mobile terminal | |
reportTotalPage
| Attribute | reportTotalPage | Total number of pages in the report |
|---|---|---|
| Parameter | - | - |
| Return value | number | Number, total number of report pages |
| Example | Example 1: If the obtained report object is defined as report , the total number of pages of the report object Example 2: The total number of report pages in a general report Example 3: Total number of pages in report0 report block in dashboard _g().getWidgetByName('report0').reportTotalPage; | |
Application example | Customize a button "View Total Page Number" to view the total page number of the report when clicked: Click to download the template:
| |
| Mobile | Support mobile terminal | |
