Hyperlink solves Internet script run slowly

  • Last update:  2021-04-21
  • I. Description

    When there are too many widgets to report on the page, it may be slower, and an "example of slow Internet script running" appears.

    In this chapter, we use an example to introduce how to use hyperlinks to solve the card problem caused by too many page controls. The effect we want to achieve is to click on a value to transfer the corresponding value to the data entry template for data entry, as shown in the following figure:

    1.png


    II. Example

    Since the hyperlink is to the data entry template, we need to define the sub-report as a data entry form, and then set the hyperlink of the main report to open the sub-report in the form of data entry.


    1. Set sub template

    Open the template: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\Primary\DetailReport\Data_Display_Format.cpt

    1) Widget setting

    Select A2-H2 in batches, set the widget type to Text Field, and the effect after setting is as shown in the figure below:

    2.png

    2) Increase parameters

    Click Template>Template parameter, add a parameter named orderID, and set the default value to the integer 10001.

    Add a filter condition with the ORDERID equal to the parameter $orderID to A2.

    Finally, set the Data Entry Attributes for the report, I won't introduce it here.

    3) Save the template

    Save the template. The completed template, see: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\ReportApplication\FeaturesApplication\Hyperlink_solve_slow_running_sub.cpt.


    2. Set main template

    Open the template: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN \Advanced\Data_Drilling_main.cpt.

    Modify the template of the hyperlink to the newly created Hyperlink_solve_slow_running_sub.cpt, and set it to be accessed by filling in, and modify the name of the parameter to the report parameter defined by the sub-template, that is, orderID. The specific settings are as follows:

    3.png


    Save the template.

    The completed template can refer to: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\ReportApplication\FeaturesApplication\Hyperlink_solve_slow_running_main.cpt.


    3. Effect preview

    Preview the main template by pagination preview. If you want to modify a value, just click the hyperlink to the sub-template to modify it. This reduces a lot of widgets and greatly improves the efficiency of the report.

    III. Template download

    Attachment List


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