Anchor point realizes to jump to specified row

  • Last update:  2021-04-29
  • I. Overview

    1. Expected effect

    Sometimes the report has a large amount of data and is displayed without pagination. It is troublesome to view the later data. Hope to quickly locate the corresponding number of rows through the specified number, as shown in the figure below:

    1.gif


    2. Realization idea

    Through the use of HTML anchor links, it is possible to locate the element corresponding to the ID.

    II. Example

    1. New report

    1) New dataset

    Create a new normal report, create a dataset ds1, the SQL statement is: SELECT * FROM ORDERS limit 200. As shown below:

    2.png

    2) Design report

    Drag data into the corresponding cells, the report style is as shown in the figure below:

    3.png


    2. Set attributes for serial number cell

    1) Select A3, click cell element, and insert the formula: =seq(). As shown below:

    4.png

    2) Select A3, click Cell Attributes > Display, and set it as Formula Form:="<span id='"+$$$+"'>"+$$$+"</span>". As shown below:

    5.png

    3) Select A3, click Cell Attributes > Other> Advanced, and select Display by HTML. As shown below:

    6.png


    3. Set Drop-down box widget

    Select  B1 and click Widget Setting to set it as a Drop-down box widget. As shown below:

    7.png

    1) Set widget attributes

    The Data Dictionary type is set to Formula, the actual value =RANGE(200). As shown below:

    8.png

    2) Set widget event

    Select B1, click Widget Setting>Event, add an after editing event , and enter JavaScript code, as shown in the figure below:

    9.png

    The JavaScript code is as follows:

    location.href = "#"+this.value;


    4. Effect preview

    Save the template, click Data Entry Preview, the effect is as shown in I.1.

    Note: Mobile is not supported.

    III. Template download

    Please refer to the completed template: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\ReportApplication\BasicApplication\Jump_to_specified_row.cpt.

    Click to download: 

    Jump_to_specified_row .cpt


    Attachment List


    Theme: Report Application
    • 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