| Hello,
To generate a cube, you will need to first connect to your relational datasource using the RdDataSource, XMLDataSource, or UnboundDataSource objects. You can then save a local cube of the data by using the SaveLocalCube method of the datasource to save a ddAnalysis cube file. Please go through the given below links for more details:
http://www.datadynamics.com/Help/ddAnalysis/DataDynamics.Analysis.Windows.Forms~DataDynamics.Analysis.DataSources.RdDataSource.html
http://www.datadynamics.com/Help/ddAnalysis/DataDynamics.Analysis.Windows.Forms~DataDynamics.Analysis.DataSources.UnboundDataSource.html
http://www.datadynamics.com/Help/ddAnalysis/DataDynamics.Analysis.Windows.Forms~DataDynamics.Analysis.DataSources.XmlDataSource.html
http://www.datadynamics.com/Help/ddAnalysis/DataDynamics.Analysis.Windows.Forms~DataDynamics.Analysis.DataSources.IPersistLocalCube~SaveLocalCube.html
The cube files can be saved by calling the SaveLocalCube method from an RdDataSource, UnboundDataSource, or XmlDataSource object. For example, you could use the following line of code to save the cube:
rdDataSource1.SaveLocalCube(new System.IO.FileInfo("C:\\cubefile.ddacube"), DataDynamics.Analysis.DataSources.SaveLocalCubeOptions.None);
Then to load the cube you would need to have a LocalCubeDataSource object and provide it with the path for the cube file. Once the LocalCubeDataSource object is setup you should be able to attach it to the pivot view by setting the pivot view's datasource to the LocalCubeDataSource object. This could be done in code by using something similar to:
LocalCubeDataSource1.LocalCubeFile = "C:\\cubefile.ddacube";
this.pivotView1.DataSource = LocalCubeDataSource1;
LocalCubeDataSource1.Connect();
Or on the web you could also use the following with a LocalCubeDataSource added to the aspx page:
this.LocalCubeDataSource1.LocalCubeFile = "C:\\cubefile.ddacube";
this.pivotView1.DataSourceID = this.LocalCubeDataSource1.ID;
To know how to create a Schema we have a sample (SchemaGeneration) installed with DataDynamics Analysis which demonstrate how you can create schema at run time. You may find these samples installed at the following location:
C:\Documents and Settings\UserName\My Documents\Data Dynamics\Analysis\xx.xx.xx\Samples\CS\SchemaGeneration
(Where xx.xx is the build installed on your machine)
Along with this we have several other samples as well which shows different features of DataDynamics Analysis.
Let me know if it helps or you need further assistance.
Thanks,
Gaurav |
|