IMDCalculationInstance.Calculate

Syntax

Calculate(Args: IMDCalculationCalculateArgs);

Parameters

Args - parameters of multidimensional calculation on DB server.

Description

The Calculation method executes multidimensional calculation on DB server according to specified calculation parameters.

Example

Executing the example requires that the repository contains multidimensional calculation on DB server with the MDCalc_1 identifier.

Sub Main;

Var

MB: IMetabase;

MDInst: IMDCalculationInstance;

Args: IMDCalculationCalculateArgs;

Begin

MB := MetabaseClass.Active;

MDInst := MB.ItemById("MDCalc_1").Open(Null) As IMDCalculationInstance;

Args := MDInst.CreateCalculateArgs;

Args.CleanType := MDCalculateArgsCleanType.All;

MDInst.Calculate(Args);

End Sub Main;

After executing the example multidimensional calculation is executed on DB server. The data consumer is cleared before calculation.

See also:

IMDCalculationInstance