Welcome to LightSwitch Desktop Edition > OLAP for LightSwitch Overview > OLAP for LightSwitch: Quick Start > A Simple OLAP Application |
To create the simplest OLAP for LightSwitch application, start by creating a new LightSwitch application, and then add a data source and an OLAP Screen.
To create a new OLAP for LightSwitch project, complete the following steps:
To add an existing data source to the project, follow these steps:
The screen template has a layout that is appropriate for a LightSwitch collection control. For this reason, there is a child element of type C1RowPlaceholder, which is analogous to a row template in an editable grid screen. Although the row placeholder is not visible at run time, it must be present at design time. The row placeholder also provides an interface for specifying which fields are to be shown to end users in the C1OlapPanel. For more information, see Excluding Fields from the View.
Run the application and you will see an interface similar to the one in Microsoft Excel.
In debug mode, you can click the Design Screen button to customize the page. If you select the C1OlapPage from the left-side menu at run time, you can customize various properties, including options specific to ComponentOne's product. Check the box labeled Show Raw Data to display an additional tab containing the underlying data to be analyzed. Check the Show Favorites checkbox to display the Add and Remove Favorites buttons and Favorites List. Click the Load View Definition link to load a view definition (*.olapx) file containing field settings and other options saved at run time using the C1OlapPage toolbar.
In release mode, the Design Screen button is not available. However, the Show Raw Data and Load View Definition elements are present in the main screen designer. For more information on view definition files, see Saving and Loading the View Definition.
The following sections describe the functionality provided by default, without writing any code.