Click on a Cell/Row to Display Different Background Colors

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

    In the report development process, you usually encounter report linkage scenarios. Usually, you need to change the background color of the currently clicked cell or the current row to bring us a good visual experience. So here's how to use conditional attributes to realize the click-to-color change that is supported by both the PC and mobile terminals.

    II. Realization ideas

    Here we realize it by bringing its own function condition attribute and hyperlink function.

    •  Set the dynamic parameters of the hyperlink and pass the value of the currently clicked cell.

    • The condition attribute judges the current dynamic parameter value (that is, the value of the current cell) to change the background color of the current cell or row.

    III.Operation steps/examples

    1.Add hyperlink


    First select the cell to be clicked, Hyperlink>Dynamic Parameter, set the dynamic parameter naming parameter, and set the formula in the parameter value to fill in the cell to be clicked.

    1614880075795735.jpg

     2. Configure condition attributes


    We have set the dynamic parameters, then when clicked, the value of the currently clicked cell will be passed as the parameter, the parameter name is str (you can customize the name), and then we will configure the condition attribute, the same is to add the condition on the A2 cell Property> drop-down selection box to select the background can be set to take effect on the current row or current cell, and then set the operator to equal to in the conditions below, and use the formula to write the following value into $str (use the $ sign and the parameter name to get the parameter )

    After such a configuration, we can achieve what we need to click on the current cell to change the color of the current cell or the current row.

    1614880090984416.jpg

    1614880104946962.jpg

    IV.  View the effect

    PC terminal

    4.gif

    App

    5.gif

    H5

    6.gif

    V. Completed template

    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