ActiveReports 14
ActiveReports 14 User Guide / Samples and Walkthroughs / Samples / Samples / Data Binding / Page and RDL Reports / OData Data Source
In This Topic
    OData Data Source
    In This Topic

    The OData DataSource sample demonstrates how to use OData EndPoint for binding a report.

    Sample Location

    Visual Basic.NET

    ..\Samples14\DataBinding\PageAndRDL\ODataDataSource\VB.NET

    C#

    ..\Samples14\DataBinding\PageAndRDL\ODataDataSource\C#

    Run-Time Features

    The ODataDataSource sample needs a running ODataEndPoint to obtain data.  To run the sample, please perform the following steps:

    1. Right-click solution in Solution Explorer and select Properties.
    2. Select Multiple startup projects radio button and Start actions in ODataEndPoint and ObjectDataSourceClient, or ODataEndPoint and JsonDataSourceClient projects in Startup Project tab.
    3. Run the sample again.

    Project Details

    The sample consists of JsonDataSourceClient and ObjectDataSourceClient projects to render data and ODataEndPoint to query data. 

    JsonDataSourceClient

    This folder contains the DataLayer, Program and Service classes required for the data connection.

    The MainForm is the form that appears when you run this sample if you have previously selected ODataEndPoint and JsonDataSourceClient projects as startup projects in the sample Properties.

    ObjectDataSourceClient

    This folder contains the DataLayer, Program and Service classes required for the data connection.

    The MainForm is the form that appears when you run this sample if you have previously selected ODataEndPoint and ObjectDataSourceClient projects as startup projects in the sample Properties.

    The Models subfolder contains Movie and Year classes.

    ODataEndPoint

    This folder contains the AppData and AppStart subfolders required to run the application.

    The Controllers subfolder contains the MoviesController and CustomersController files. The MoviesController handles the user interaction and returns the main view. The CustomersController handles the customer details information that is displayed when a customer is selected.

    The Models subfolder contains the Customer and Movie classes providing data for the report.

    Global.asax is the default class that sets global URL routing values for this web application.

    Web.config is the configuration file that contains the httpHandlers that allow ActiveReports to process this web application. Note that you need to manually update version information here when you update your version of ActiveReports.