pivotcube vcl question

Discussion forum for PivotCube VCL users. Common questions. Bug and problem reports

Moderator: Alex Zencovich

pivotcube vcl question

Postby tasosbull » Thu Jul 13, 2006 11:10 am

I want to add a dimension at runtime to a map component
that loads and saves its data to a file.
Is this possible?
tasosbull
Guest
 
Posts: 2
Joined: Thu Jul 13, 2006 10:50 am

Postby AlexZencovich » Thu Jul 13, 2006 11:59 am

What you mean as add dimension? Place it to row or column or just add new, unknown dimension?
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am

Postby tasosbull » Thu Jul 13, 2006 12:32 pm

Ok let me explain what i want to do.
I have a file that describes the fact table , dimensions , and measures.
My app uses this file to setup a cube at runtime
So i create my datasets, add my dimensions and measures of cube on the
fly.
I save my cube data to a file, and map data to another one
So when user need a view i load cube from cube file and map from mapfile.
Only on refresh i recreate the cube from the initial file.
The problem is when i change the initial file adding new dimensions.
Then the map file is out of sync with the new created cube.
Thanks for your reply
tasosbull
Guest
 
Posts: 2
Joined: Thu Jul 13, 2006 10:50 am

Postby AlexZencovich » Thu Jul 13, 2006 1:25 pm

You are right, the map became incompatible with cube if you change cube config.
You may try to save map to XML file instead of binary file and fix XML file if you change cube configuration (add new dimension, remove unexisted dimension).
But you need to save map without dimension items (parameter SaveDimensionData = False). Otherwise synchronization may became too complex if even possible.
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am


Return to PivotCube VCL

Who is online

Users browsing this forum: No registered users and 4 guests