RadarSoft.RadarCube.Web.MSAS Send comments on this topic.
OnCalculateField Event
See Also 
RadarSoft.RadarCube.Web Namespace > TOLAPCube Class : OnCalculateField Event




Fires when the Cube evaluates calculated fields in the data schema.

Syntax

Visual Basic (Declaration) 
Public Event OnCalculateField As TCalculateFieldEvent
Visual Basic (Usage)Copy Code
Dim instance As TOLAPCube
Dim handler As TCalculateFieldEvent
 
AddHandler instance.OnCalculateField, handler
C# 
public event TCalculateFieldEvent OnCalculateField
Managed Extensions for C++ 
public: __event TCalculateFieldEvent* OnCalculateField
C++/CLI 
public:
event TCalculateFieldEvent^ OnCalculateField

Remarks

Handle this event handler to compute calculated fields values. The event handler is raised every time a record in any table with at least one calculated field is read. See the description of the TCalculateFieldArgs Class for details.

Note that by the moment when the TOLAPCube.OnCalculateField event occurs not all tables of the database have been read from the database. However, it is always guaranteed that all parent tables have been already read and initialized. So it is safe to use TDataRow.GetMasterRow method to access the related parent record.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2010 Radar-Soft, L.L.C. All Rights Reserved.