Data Dictionary Linkage of Data Entry Widgets

  • Last update:  2024-04-26
  • Overview

    Application Scenario

    For data entry templates that contain multiple widgets, after you select the value of a widget, you want the value of another widget to change accordingly. This effect can be achieved by the Data Dictionary function, as shown in the following figure.

    22222233.gif

    Implementation Method

    You can achieve the linkage effect in data entry templates via three methods.

    Use a SQL dataset to filter data. (The data of expanded widgets can also have the linkage.)

    Use the SQL function (The data of expanded widgets can also have the linkage, but performance risks may appear in terms of large amounts of data.)

    Use the VALUE function. (The data of expanded widgets can also have the linkage.)

    Notes

    1. The linkages can only be unidirectional and cannot be bidirectional. For example, you can set the data dictionary of Widget B to change with the value of Widget A, but in this case you cannot set the value of Widget A to change with the value of Widget B.

    2. The three-level linkage is not supported. That is, if the value of Widget B is subject to that of Widget A, you cannot further set the value of Widget C to be subject to that of Widget B.

    3. When you set the data dictionary linkage for the widget in a cell, the linkage parameter should be the cell rather than the widget name.

    4. The set value of a widget (whose value is subject to that of another widget) will be cleared if a data dictionary linkage is triggered. For example, if the value of the City widget is subject to that of the Region widget, the city you have selected before will be cleared once you select the region.

    22222233 - 副本 - 副本.gif

    Example

    Template Preparation

    Create a template in the designer and design a table according to the following style.

    583d1aaec25664704c1413816e236c1.png

    Method One: SQL Dataset

    1. Add a dataset ds2 with the SQL statement: SELECT City FROM Employee_copy where Region='${C9}', which is to limit the data of the City widget by the value in the C9 cell (Region) by using the WHERE statement.

    ed6d8ac4cc0b0605001a99a4ca35438.png

    2. Select the C9 cell (Region). Modify the name of the drop-down box widget to Region. Select ds1 from the drop-down list of Dataset on the Data Dictionary setting page, as shown in the following figure.

    bf4e67523b70785cd830da2067b6e3e.png

    3. Select the F9 cell (City). Select ds2 from the drop-down list of Dataset on the Data Dictionary setting page, as shown in the following figure.

    d2d3e5fca768d7cf3e124745a7578bb.png

    Method Two: SQL Function

    Select the F9 cell. Select Formula from the drop-down list of Type on the Data Dictionary setting page. Enter the formula SQL("FRDemo","select City from Employe_copy where Region='"+C9+"'",1) in the input box of Actual Value. Enter the formula $$$ in the input box of Display Value, as shown in the following figure.

    87d24a1a2c9c501e5c48e7679a81eea.png

    Method Three: VALUE Function

    Select the F9 cell. Select Formula from the drop-down list of Type on the Data Dictionary setting page. Enter the formula value("ds1",8,9,C9) in the input box of Actual Value. Enter the formula $$$ in the input box of Display Value, as shown in the following figure.

    The formula is described below.

    Return the value of City (the eighth column in ds1) corresponding to that of Region (the ninth column in ds1) in the dataset ds1.

    5775fc6d79af65ac9060a66c094f36f.png

    Effect Display

    1. On PC

    Save the template and click Data Entry Preview. The following figure shows the preview effect.

    22222233 - 副本.gif

    2. On Mobile Terminals

    The function is also supported on the DataAnalyst App and H5 terminals, as shown in the following figure.

    22222233.gif


    Template Download

    You can download the template: Data Entry Dropdown-Box Linkage.cpt

    Attachment List


    Theme: Data Entry
    • 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