Exago Logo
Search
Generic filters
Exact matches only

Global Event: OnDataFieldsRetrieved

The OnDataFieldsRetrieved Event occurs after Data Fields are retrieved for a specific Data Object. This event is commonly used to change the order Data Fields are displayed in the Data Menu of the Report Designer.

Signature

For custom code the arguments array is structured as follows:

args[] contains three objects:

  1. a System.Data.DataTable containing the names and metadata of the Data Fields
  2. the Data Object as a WebReports.Api.Reports.Entity object
  3. a reference to a WebReports.Api.Data.DataObjectBase object which calls the event.

For .NET Assemblies the method signature is as follows:

DataTable EventHandlerName(SessionInfo sessionInfo, DataTable originalDataFields, Entity dataObject, DataObjectBase eventCaller)

Notes

The DataTable being being passed to the event in the first argument has already applied Column Metadata.

Expected Return

Expects a System.Data.DataTable return value, which represents the modified data.

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents