How to refresh ?

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

Moderator: Alex Zencovich

How to refresh ?

Postby dophin » Fri Jul 13, 2007 2:16 pm

Hello, Alex

I don't know how to achieve the following :

a query provides data to a pivot cube
the query makes some filtering on the
underlying tables to provide a small dataset
to the cube

From time to time, the user needs to change
that first filter so he uses infopower's wwFilterdialog
to specify new conditions.

The fieds included in the "new" dataset are always the
same. Only the records are possibly different.

Could you please tell me how to refresh the cube
preserving the layout : column dimensions,row dimensions,
and measures displayed, even if the values are "renewed" ?

TIA

Joseph Osende
dophin
Developer
 
Posts: 33
Joined: Fri Jun 15, 2007 12:35 am

Postby AlexZencovich » Fri Jul 13, 2007 3:06 pm

PivotMap.Savexxxx;
PivotCube.Active := False;
set filter
PivotCube.Active := True
PivotMap.Loadxxxx;


But in most cases internal filtering will faster because you have set filter not in query, server-executed conditional like "select * from table where filter_conditions" but dataset-based filter so you should keep FULL dataset in memory and refresh it with filter. It just slowdown if you not need to edit that dataset at same time as when you work with OLAP cube.

Smaller dataset by filter conditions will faster only if you perfrom server-based filtering when you work with client OLAP.
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 dophin » Fri Jul 13, 2007 4:50 pm

Thank you for the quick reply, Alex

Joseph Osende
dophin
Developer
 
Posts: 33
Joined: Fri Jun 15, 2007 12:35 am


Return to PivotCube VCL

Who is online

Users browsing this forum: No registered users and 4 guests

cron