Successfully!

Error!

Smart-Adding a Cell Group

  • Last update:  2024-03-20
  • Overview

    Application Scenario

    When designing data entry tables, you may fill in data in the same column (composed of multiple fixed cells) such as Opening Balance and Ending Balance in the following figure, rather than expand cells by dragging dataset fields into the table.

     1.png

    In this case, you can bind cells (in which the same field needs to be filled in) together through the Smart Add Cell Group function and then submit data.

     2.png

    Function Description

    You can bind multiple cells (namely the cell group) to a single data table field in a built-in SQL database of FineReport. The cell group will be split into multiple built-in SQL databases when you submit data. The following figure shows how to use the Smart Add Cell Group function. You can select multiple consecutive cells by dragging the cursor. Alternatively, you can select non-consecutive cells by clicking them separately.

     3.gif

    iconNote:
    When you bind multiple cells through the Smart Add Cell Group function, data in the to-be-bound cells cannot be expanded.

    Example

    Data Preparation

    Create a data query dataset named ds1 and enter the SQL statement SELECT * FROM SubjectBalance. Click the Preview icon, as shown in the following figure.

     4.png

    Table Design

    Enter the first eight subject codes and accounting subjects in the dataset into cells and add text widgets for cells in Opening Balance and Ending Balance for data entry, as shown in the following figure.

     5.png

    Data Entry Attribute Setting

    Add four fields in the dataset and add cell groups, as shown in the following figure.

     6.png

    Effect Display

    Save the report and click Data Entry Preview. Enter the opening balances and ending balances of the first four data records, as shown in the following figure.

     7.png

    After successful submission, you can view that the first four data records in the database table have been changed, as shown in the following figure.

     8.png

    You can perform data entry on mobile terminals, as shown in the following figure.

     9.png

    Template Download

    You can download the example template Smart Add Cell Group.cpt.

    Notes

    The number of bound cells must be consistent in all fields with set cell groups. The following situation is not allowed.

     10.png

    If the number of bound cells is inconsistent, the following prompt will occur.

    1710319796186450.png

    Attachment List


    Theme: Data Entry
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    Doc Feedback