OLAP Data Processing in WPF OLAP Common
The OlapDataManager accepts an input from a user and processes the data based on the supplied input and generates the formatted output which Syncfusion OLAP controls can understand. The OlapDataManager can process the OLAP data (cube).
Steps in processing OLAP data
To process the OLAP data:
Provide an input to establish a connection to the specified data source. The connection information can be given as a connection string that contains information about the data source.
Example connection string: “DataSource = localhost; Initial Catalog = AdventureWorksDW”;
- Connect to a server or an offline cube as a data source.
- After the connection is established, provide the input for data processing. You can give two types of inputs to process the OLAP data. They are:
- MDX Query: You can write a MDX Query for the database and give that query as an input.
- OlapReport: You can create an OLAP report and give that report as an input to the OlapDataManager.
- The output will not differ, based on the input type. The processing method will differ in OLAP base, based on the input type.
- If MDX query is given as an input then the query will be executed on the connected database.
- If OlapReport is given as an input:
- MDX query specification will be created based on the OlapReport.
- From the MDX query specification, the MDX query will be generated with the help of OlapQueryBuilderEngine.
- The generated query will be executed on the connection database.
- After the query is executed either from the MDX query input or from the OlapReport input, the result is obtained.
- This result set will be formatted to provide input for the controls. The formatted input should be passed to the controls.
- The output will be displayed in the controls.
- The OlapDataManager requires an OlapReport and a virtual channel in the form of OlapDataManager.
- The OlapDataManager is a set to control and in the DataBind method, the control will make an asynchronous call with the help of a virtual channel provided in OlapDataManager.
- Now, with the help of WCF Service, the control communicates with OLAP base to retrieve CellSet.
- The control passes the obtained CellSet to the OlapDataManager and in turn the OlapDataManager returns the PivotEngine to the control.
- The output will reflect in the controls.