Data Entry Widget

  • Last update:December 06, 2024
  • Overview

    Application Scenario

    If you need to modify or add data when designing a data entry report, you must add data entry widgets for the cells to which data is to be entered.

    FineReport supports 16 types of data entry widgets, each of which applies to different data entry scenarios.

    Function Entry

    To add a data entry widget for a cell, select a cell, select Widget Setting on the right attribute panel, and select the required widget from the drop-down list of Select Widget.

     2024-12-03_15-16-05.png

    Data Entry Widget Type

    The following table lists the application scenarios for 16 types of widgets. You can click the corresponding hyperlink to view a detailed description of each widget.

    TypeWidget Name & Help DocApplication Scenario

    Data Entry

    Text Widget

    You can fill in single-line text information, such as the name, email address, mobile number, and postal code.

    Text Area Widget

    You can fill in multi-line text information, such as a personal introduction, product description, and survey response.

    Number Widget

    You can fill in numbers, such as sales volumes, profit amounts, and scores.

    Password Widget

    You can fill in passwords, which will be hidden and invisible while typing.

    Click

    Button Widget

    You can click a button widget to achieve a certain effect, such as inserting or deleting a row during data entry.

    Selection

    Checkbox Widget

    You can select multiple records simultaneously and perform operations on them, such as batch deleting data, submitting multiple records, or batch editing data.

    Radio Button Group Widget

    Multiple options are available, but only one can be submitted, for example, single-choice questions in exams or questionnaires.

    Checkbox Group Widget

    Multiple options are available and can be submitted simultaneously, for example, multiple-choice questions in exams or questionnaires.

    Drop-down Box Widget

    You can select one option from a drop-down list to fill in a cell.

    Drop-down Checkbox Widget

    You can select multiple options from a drop-down list to fill in a cell.

    Date Widget

    You can select a date to fill in a cell.

    File Widget

    You can upload and store files to a database table.

    List Widget

    You can select one from the options displayed in a list and perform the submission.

    Iframe Widget

    You can insert a web page or a report into a cell.

    Drop-down Tree Widget

    You can select one or more options from a tree structure to fill in a cell and execute the submission.

    View Tree Widget

    You can select one or more options from a tree structure to directly submit the options into the database.

    Default Value Setting for Date Entry Widgets

    If you want a widget to have a default value during data entry, you just need to enter the default value into the cell containing the widget when designing the data entry template.

    For example, if you want to set a default value for Date in the following template to dynamically display the current date, you just need to enter the formula =today() into the cell that contains a text widget next to Date when designing the template.

    Notes

    Widget Value Clearance Caused by Data Dictionary Linkage

    According to the current function design, the value of another widget linked to one widget triggering data dictionary linkage will be cleared.

    Screen Recording 2024-12-03 at 15.47.13 (1).gif

    Data Dictionary Calculation During Initialization

    If a widget that has been configured with the data dictionary on the parameter panel has no default value, the data dictionary will calculate data when you click the widget to trigger option loading. If the widget has a default value, the data dictionary will calculate data directly during widget initialization. Therefore, if the data dictionary executes SQL statements at a slow speed, setting default values for widgets will significantly impact the overall template loading speed.

    2024-12-03_15-39-47.png

    Reversion to the Previous Value in Text/Number Widgets

    If the entered value does not meet the validation rules that have been configured in text or number widgets, a corresponding prompt will appear, and the current input will be cleared and reverted to the previously entered value.

    Screen Recording 2024-12-03 at 15.44.59 (1).gif

    Numeric Precision Loss in the Data Dictionary

    iconNote:
    In FineReport V11.0.6 and later versions, the precision for numeric data in the data dictionary has been improved, and the following scenario will no longer occur.

    If the data in the data dictionary of a widget is of a numeric type (for example, bigint), the numeric precision may be lost, as shown in the following figure.

    The solution is to convert the numeric type to the string type. For example, you can perform the conversion by SQL statements, as shown in the following figure.

    Ineffective Display in Cells with Drop-Down Widgets

    If the data dictionary is set to a dataset containing dataset parameters in Display for the cell containing a drop-down box widget or a drop-down checkbox widget, the display will not take effect during frontend preview.

    2024-12-03_15-51-31.png

    Attachment List


    Theme: Data Entry
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    9s后關閉

    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