custom functions

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

Moderator: Alex Zencovich

custom functions

Postby bobibp » Fri Jan 16, 2009 8:59 am

How to add custom functions to calculated measures?
bobibp
User
 
Posts: 15
Joined: Sat Jan 10, 2009 7:43 am

Re: custom functions

Postby AlexZencovich » Fri Jan 16, 2009 6:46 pm

You have to define TPivotMap.OnCalcMeasureGetFunction event handler which will handle functio by name and array of parameters.
Then in calc measure write like

begin
func MyFunc;
Result = MyFunc("Measure","Measure2");
end;
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 5 guests

cron