Conditional Attributes to Achieve a Collapsed Tree

  • Last update:  2021-03-05
  • I.Overview

    1.Application scenarios


    The existing folding tree report can only take effect in op=view preview mode. How to use the condition attribute to generate a general folding tree report, the effect is shown in the following figure:

    1614874952995591.gif

    2.Implementation ideas


    Save the clicked group serial number in the parameter, and then judge whether there is the group in the parameter to realize the display and hiding.

    II.Example

    1.Report design


    Create a new data set ds1, the database query statement is: SELECT * FROM SELECT * FROM Sales_Volume

    1614874974264082.jpg

    Design the table as shown in the figure below, set the cell data of B2 as a list, and set the left parent cell as A1.

    3.png

    Select cell A1 and add a dynamic parameter type hyperlink to the cell. The parameter settings are as follows:

    The parameter name is: a

    The parameter value is:IF(LEN($a) = 0, &A1, if(inarray(&A1, split($a, ",")) > 0, joinarray(GREPARRAY(split($a, ","), item != &A1), ","), $a + "," + &A1))

    1583737579153551.png

    4)Select cell B2 and add a condition attribute of row height type to the cell, the formula is as follows:

    When inarray(&A1, split($a, ",")) > 0, the row height is 5

    1614875049621823.jpg

    5)Add another condition attribute of row height type to cell B2, the formula is as follows:

    Wheninarray(&A1, split($a, ",")) = 0,the row height is0

    1614875064260576.png

    2. Effect preview


    PC terminal

    Save the report, click the page to preview, the effect is as shown in the figure below:

    1614875090320696.gif

    Mobile

    7.gif

    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