Map can't load calc measure from file

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

Moderator: Alex Zencovich

Map can't load calc measure from file

Postby stoyanov » Fri Dec 21, 2007 8:51 am

My steeps.
1. Build cube.
2. Add calc measure with measure manager.
3. Save Map to file Map.SaveToFile(svDialog.FileName,true);
4. Build new cube with pred dimensions.
5. Load Map from file Map.LoadFromFile(opDialog.FileName);
6. Do refresh Map.RefreshData(true);
Result: calc measure not loaded.

What I do incorectly?
or
How to save and load calc measures?

Thanks!
stoyanov
Guest
 
Posts: 4
Joined: Wed Sep 12, 2007 6:34 am

Postby stoyanov » Fri Dec 21, 2007 8:55 am

I'm use name 'test'.
In thread (http://pivotcube.com/forum/viewtopic.php?t=307) says about Unicode names, but i use non unicode name.
??
stoyanov
Guest
 
Posts: 4
Joined: Wed Sep 12, 2007 6:34 am

Postby stoyanov » Fri Dec 21, 2007 9:02 am

VCL version 7.5.0.1
stoyanov
Guest
 
Posts: 4
Joined: Wed Sep 12, 2007 6:34 am

Postby AlexZencovich » Fri Dec 21, 2007 9:05 pm

The possible causes (I do not sure because for my tests with demo app it works in situations similars you describe)

1. After you add calc measure, the map still not refreshed so new calc. measure was not implemented in map

2. calc measure name has some characters which make it unloadable (important to XML map without unicode support when name saved in non-English language)


Map.Loadxxxxx methods already have several calls to Map.refreshData inside so there not needed to call that yet one time


If problem still exists, please send me cube example and unloadable(wrong loaded) map so I will able check for problem and make fix or provide correct answer
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 2 guests

cron