Skip to main content

How to use subform data in reports for report analysis

1. Perform report analysis on Subforms

FormAndFlow chartThe data submitted inReport pageAs a data source for further analysis;

When a subform exists in a form, additional processing is performed YIDA to support analysis.


The following describes a specific scenario (purchase order).

1.1 form design

Purchase Order design is as follows

Purchase orderBelowPurchase order number,Purchase Date,Purchase subformThree components

Purchase subformBelowTrade name,Incoming quantityTwo components


1.2 Relationship between forms and data sources in reports

  • On the report page, you need to select a dataset, which isFlow chart/form. The column fields in the report dataset are the components in the form. (Due to the particularity of subform components, no mapping is performed)
  • Subform components can accommodate other form components and can submit multiple pieces of data at a time.
  • The subform component is aSubtableThe subform component is independently mapped to an independent dataset in the report, namedForm name-subform name(For example, the list of purchase orders)

After selecting the dataset, you need to select the column fields under the dataset (corresponding to the components in the form)

Purchase orderUnder the dataset, there arePurchase order number,Purchase DateTwo column fields

Purchase subformUnder the dataset, there areProduct Name,Incoming quantityTwo column fields


1.3 relationship between form data and report data

  • Each data submitted by the form has a unique ID. The corresponding field in the report isInstance ID
  • The data in the subform component is placed in the report.Subform datasetNext, all these data have a fieldParent instance ID, the value is the ID of the current form instance.


BelowPurchase order

First inPurchase orderSubmit two pieces of data, as shown in the following figure:

  • In the report,Purchase orderAndPurchase order-subformThe results of the two datasets are as follows:


The data of the purchase subform is placed inPurchase order-purchase subformIn this report dataset, the parent instance ID is equal to the instance ID of the primary table.


2. Show form data and subform data together

In some business scenarios, form data and subform data need to be analyzed together. In this case, multi-table association can be used to implement

The data of the two tables should be linked together. You can useInstance ID of the primary table = parent instance ID of the subform dataAssociate


For example, to associatePurchase orderAndPurchase order-purchase subformThe data of the two tables can be configured as follows:

  • When you select a dataset, SelectMulti-table Association」;
  • Data table"Select 「Purchase orderAndPurchase order-purchase subformTwo tables;
  • SelectAdd Association, select the main tablePurchase order, field selectionInstance ID 」; Select an associated tablePurchase order-purchase subform, field selectionParent instance ID」;
  • Select the fields of the two tables;

2.1 Introduction to Association

The left Association is the outer Association, which displays all the data of Table A and Table B. The inner Association only displays the fields associated with table A and Table B.

(1) internal Association

The data on both sides is associated, and the intersection is taken. Only the data on both sides can be matched is displayed.

(2) left correlation

Data association between the two sides. The data in the left table shall prevail.


3. Precautions

3.1 neither the primary table nor the subtable can contain more than 1W pieces of data.

3.2 Aggregate queries use the associated fields of the primary and child tables for grouping. Therefore, aggregate queries must include associated fields as display fields.

3.3 2.0 report multi-table Association does not support the use of report formulas.

3.4 filter conditions/filter conditions can only be applied to the primary table.

3.5 you cannot use multi-select or check fields for associated fields.

3.6 subforms do not support report filtering. You can consider using intermediate tables to reach your request.



YIDA in order to better optimize the content and quality of YIDA user manual, it takes you 3-5 minutes to fill in the document feedback questionnaire. The document feedback questionnaire is submitted anonymously, and the questionnaire information is only used for YIDA document experience feedback collection. Thank you for your support for YIDA!

Click here to fill in the questionnaire


-------------------- Get the latest information YIDA, welcome to follow US--------------------

This doc is generated using machine translation. Any discrepancies or differences created in the translation are not binding and have no legal effect for compliance or enforcement purposes.
Copyright © 2024钉钉(中国)信息技术有限公司和/或其关联公司浙ICP备18037475号-4