Report Pagination API

  • Last update:  2022-02-15
  • gotoPreviousPage

    MethodgotoPreviousPage()Jump to previous page
      Parameter--
    Return valuevoid
       Example

    Example 1: If the obtained report block object is defined as report , jump to the previous page

    report.gotoPreviousPage();

    Example 2: Jump to the previous page in a general report

    _g().gotoPreviousPage();

    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:

    Jump to the previous page.cpt

    1.gif

    MobileSupport mobile terminal

    gotoNextPage

    MethodgotoNextPage()Jump to next page
      Parameter--
    Return valuevoid
       Example

    Example 1: If the obtained report block object is defined as report , jump to the next page

    report.gotoNextPage();

    Example 2: Jump to the next page in a general report

    _g().gotoNextPage();

    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:

    Jump to the next page.cpt

    2.gif

    MobileSupport mobile terminal

    gotoLastPage

    MethodgotoLastPage()Jump to the last page
      Parameter--
    Return valuevoid
       Example

    Example 1: If the obtained report block object is defined as report , jump to the last page

    report.gotoLastPage();

    Example 2: Jump to the last page in a general report

    _g().gotoLastPage();

    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:

    Jump to the last page.cpt

    3.gif

    MobileSupport mobile terminal

    gotoFirstPage

    MethodgotoFirstPage()Jump to the first page
      Parameter--
    Return valuevoid
       Example

    Example 1: If the obtained report block object is defined as report , jump to the first page

    report.gotoFirstPage();

    Example 2: Jump to the first page in a general report

    _g().gotoFirstPage();

    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:

    Jump to the first page.cpt

    4.gif

    MobileSupport mobile terminal

    gotoPage

    MethodgotoPage(pageNumber)Jump to the specified page
      ParameterpageNumber:numberThe page number of the specified page, number
    Return valuevoid
       Example

    Example 1: If the obtained report block object is defined as report , jump to page 3

    report.gotoPage(3);

    Example 2: Jump to page 3 in general report

    _g().gotoPage(3);

    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:

    Jump to the page 3.cpt

    5.gif

    MobileSupport mobile terminal

    getCurrentPageIndex

    MethodgetCurrentPageIndex()Get page number of the current page 
     Parameter-
    -
    Return valuenumberCurrent page number, number
       Example

    Example 1: If the obtained report object is defined as report , get the current page number of the report object

    report.getCurrentPageIndex();

    Example 2: Get the page number of the current page in a general report

    _g().getCurrentPageIndex();

    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

    6.gif

    MobileSupport mobile terminal

    getReportTotalPage

    MethodgetReportTotalPage()Get the total number of pages
      Parameter-
    -
    Return valuenumberTotal 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

    report.getReportTotalPage();

    Example 2: Obtain the total number of report pages in a general report

    _g().getReportTotalPage();

    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:

    View total page number.cpt

    7.gif

    MobileSupport mobile terminal

    currentPageIndex

    AttributecurrentPageIndexThe page number of the current page of the report
      Parameter-
    -
    Return valuenumberpage 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

    report.currentPageIndex;

    Example 2: The current page number of a general report

    _g().currentPageIndex;

    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

    8.gif

    MobileSupport mobile terminal

    reportTotalPage

    AttributereportTotalPageTotal number of pages in the report
      Parameter-
    -
    Return valuenumberNumber, 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

    report.reportTotalPage;

    Example 2: The total number of report pages in a general report

    _g().reportTotalPage;

    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:

    View total page number.cpt

    9.gif

    MobileSupport mobile terminal


    Attachment List


    Theme: Secondary Development
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy