JS Get the Value of the Widgets in Expanded Cells

  • Last update:  2020-12-15
  • I. Overview

    1.1 Requirement

    When conducting data entry preview, how to get the value of the widgets for data entry in expanded cells.


    1.2 Solution

    Use JS event to get the value of the widgets for corresponding rows.

    II. Sample

    2.1 Steps

    Create a template and add the dataset ds1:

     SELECT * FROM SALES_BASIC

    Drag the dataset [Salesperson] into A1, and set a drop-down box widget for A1 and a button widget for B1. The drop-down box widget is expanded downwards. The template is designed as follows:

    Add a JS click event to the button widget of B1:

    Input the JS code:

    var location = this.options.location;  // Get the location of the current widget
    var cr = FR.cellStr2ColumnRow(location);
    var col = cr.col;  // Column No.
    var ro = cr.row;  // Row No.
    var zybck = contentPane.getWidgetByCell(FR.columnRow2CellStr({col: col-1, row: ro}));// Get the widget for corresponding cells
    alert(zybck.getValue());  // Get the corresponding value

     

    2.2 Preview

    Choose [Data Entry Preview]. The preview effect is as follows:

    III. Data entry preview

    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