Sets the name of the Structured Data Type or Business Component whose type is returned by the Data Provider.
Objects: Data Provider
The output of a Data Provider object is a hierarchical structure. GeneXus represents this kind of data using a Structured Data Type (SDT) object or a collection of SDTs. A Business Component (BC) or a collection of BCs can also be returned.
This property is the only way to define the Data Provider's output (it is not possible to do it using the Parm rule).
Completing this property is mandatory.
If you drag an SDT or a Transaction configured as a Business Component from the KB Explorer to a Data Provider's source, the Output property of the Data Provider is automatically set with the name of the SDT or BC.
The GeneXus Transaction object also provides a way to represent hierarchical data, but at the database level, through a user interface (the Form). The corresponding hierarchical structure resulting from keeping only the structure (and all the logic) but not the Form is called a Business Component. A Business Component involves an SDT, meaning it is also a hierarchical structure that can be used in the same scenarios where an SDT is applicable. For this reason, the output of a Data Provider can be not only an SDT (or a collection of SDTs) but also a BC (or a collection of BCs).
There is no difference if the output of the Data Provider is an SDT or a BC. The BC structure is filled within the Data Provider source, just like an SDT.
It is important to note that the object calling the Data Provider will have to work with the result returned by the Data Provider, and execute the Insert method or the InsertOrUpdate method to perform the insertion(s) into the database.
The following properties allow you to choose whether to return an instance, a collection, or a matrix of the type you set in the Data Provider Output property:
- Collection property
- Collection Name property
This property applies only at design time.