Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to use OData (WCF Data Services) to provide data for a report

$
0
0
At the moment, XtraReports cannot connect to an OData data source directly. 

Our reporting tools, however, are data sources agnostic. 
They support data source of different types, including .NET data providers, lists (implementing the System.Collections.IList, System.ComponentModel.ITypedList, or System.ComponentModel.IBindingList interfaces), and XML data sources. To learn more, refer to Data Binding Approaches.

So, to provide report data through the OData service, get IList data from the OData Service and then pass it to a report. Here are implementation details.

1. Add the OData Service Reference to your project. Now, the OData service context is registered in the application. 
2. Create a data model from the OData Service context. This data model will retrieve data from the OData service and return IList data. 
3. Bind a report to this data model through the ObjectDataSource component.

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>