Data Drilling and Return

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

    Drill into the sub-report through the hyperlink of the main table, and hope that there is a "return to the previous page" in the sub-report. When there are parameters in the main table, click "return to the previous page" to use the previously used parameters to query data, and No need to click the query button again, as shown below:

    1.gif

    II.Ideas

    The sub-table is realized by setting the Hyperlink-JavaScript and the parameters are defined. In the main table, you need not to check the Display Nothing Before Query in the parameter interface.

    III. Examples

    Let's take a look at the specific implementation process.

    1. Main report settings

    1) Open the template

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

    2) Parameter setting

    Add a report parameter named orderID and set its default value to 10001, as shown below:

    1.png

    Add a filter condition of ORDERID Equal to $orderID to the data column where the ORDERID is located, as shown below:

    2.png

    3) Parameter interface setting

    Set the control type of the parameter orderID to the drop-down box, and its actual value and display value are the order ID in the order table, as shown below:

    3.png

    The label value is set to the Order number, as shown below:

    4.png

    You need not to check the Display Nothing Before Query, as shown below:

    5.png


    2. Subreport settings

    1) Open the template

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

    2) Hyperlink settings

    Fill in a blank cell to return to the previous page, right-click to select the hyperlink, and click Add JavaScript. The specific settings are as follows:

    6.png

    Add the following JS event:

    location=FR.cjkEncode("${servletURL}?viewlet=doc-EN/SpecialSubject/HyplinkReport/Data_Drilling_And_Return_main.cpt&orderID=")+orderID;

    3. View the effect

    Preview the main report in pages. After clicking the hyperlink to the sub-report, click Back to the previous level to return to the main report, as shown in the above rendering.

    Note: Mobile terminal is not supported.


    4. Completed template

    Please refer to the completed template%FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\SpecialSubject\HyplinkReport\Data_Drilling_And_Return_main.cpt

    %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\SpecialSubject\HyplinkReport\Data_Drilling_And_Return_sub.cpt

    Click to download the template:

    Data_Drilling_And_Return_main.cpt

    Data_Drilling_And_Return_sub.cpt


    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