ASP.NET MVC Controls | ComponentOne
In This Topic
    PivotEngine Scaffolding
    In This Topic

    The steps to scaffold ComponentOne OLAP control for ASP.NET MVC are as follows:

    1. Configure the datasource. Refer the topic Data Source Configuration to see configuring a datasource in an application.
    2. In the Solution Explorer, right-click the project name and select Add | New Scaffolded Item. The Add Scaffold wizard appears.

    3. In the Add Scaffold wizard, select Common and then select C1 Scaffolder from the right pane. You can also select Common | MVC | Controller or Common | MVC | View and then C1 Scaffolder to add only a controller or a view.


    4. Click Add. The AddScaffold wizard appears with the Data tab selected by default.

    5. In the AddScaffold wizard, select the Olap tab.

    6. In the AddScaffold wizard, select PivotEngine control and click Next. The C1 ASP.NET MVC PivotEngine wizard appears with the General tab selected by default.

    7. In the General tab, specify the basic details as follows:

      1. Enter the Controller Name and View Name.
      2. Enter the Id for the PivotEngine control.


    8. In the Fields tab, specify the model details as follows:

      1. Select None from the Show Row Totals dropdown list.
      2. Select Model Class from the drop-down list. The list shows all the available model types in the application in addition to the C1NWind.edmx model added in Step 1. In our case, we select Customers to populate data.
      3. Drag and drop to choose fields as per your requirements.


    9. Click Add. You will notice that the Controller and View for the PivotEngine control is added to your project.