In v2018.1 this event was extended to provide access to the active execution object, as well as the ability to modify report execution schema via the SessionInfo object. After modifying the execution schema, the method Report.ReprocessAfterAlteration()
must be called in order to process the changes.
For custom code the args array is structured as follows:
args[] contains a single DataTable of the combined data in position zero and the ActiveLocalExecution object in position one.
For .NET Assemblies the method signature is as follows:
DataTable EventHandlerName(SessionInfo sessionInfo, DataTable combinedData, ActiveLocalExecution execution)
Note
The ActiveLocalExecution object is defined in the
WebReports.Api.Execute
namespace.
The OnDataCombined Event expects a DataTable to be returned. The schema of the DataTable must match that of combinedData.
In the DataTable, if a Data Object has an Id then that will be used as the column names, otherwise the database name will be used. Data Fields will always use their database names despite any Column Metadata.