In order to use the Wijmo OLAP Screen template, you will need to install a NuGet package into the Server project. First, ensure that your LightSwitch project has at least one data source, and then follow these steps:
- For Visual Studio 2012, in Solution Explorer, change the LightSwitch project from Logical View to File View. In Visual Studio 2013, you no longer need to switch between the Logical View and the File View because all your project content is available under one view in the Solution Explorer.
- Right-click the Server project and then click Manage NuGet Packages dialog. Make sure that you do not perform these steps on the HTML client project.
- Select the Online tab, ensure that the Stable Only option is selected, and then search for wijmo.
- Install the package named OLAP Server for LightSwitch. Note that you do not need to install any other Wijmo or ComponentOne packages into the Server project. Accept the licenses when prompted to do so.
- Close the Manage NuGet Packages dialog.
- In the Solution Explorer, expand the file Global.asax and follow the steps as mentioned in the file.
- Search for the TODO comment and replace MyDataSource.MyCollection with an actual entity set reference (for example, NorthwindEntitiesData.Invoices).
- (Visual Basic only) Edit the file Global.asax and follow the step mentioned in the file.
If you have configured the Server project as described here, then the Wijmo OLAP Screen will just work without any modifications, provided that the entity you specify when instantiating the screen template is the same entity specified in step 7 above.
Trademarks
Microsoft, Windows, Visual Studio, LightSwitch, Excel, and Silverlight, are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. LightSwitch is a registered trademark of GrapeCity, inc. All product and company names herein may be trademarks of their respective owners.
See Also