IMDCalculationInstance.Calculate

Syntax

Calculate(Args: IMDCalculationCalculateArgs);

Parameters

Args. Parameters of multidimensional calculation on database server.

Description

The Calculate method executes multidimensional calculation on database server according to specified calculation parameters.

Example

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

Sub UserProc;
Var
    MB: IMetabase;
    MDInst: IMDCalculationInstance;
    Args: IMDCalculationCalculateArgs;
Begin
    MB := MetabaseClass.Active;
    MDInst := MB.ItemById("MDCalc_1").Open(NullAs IMDCalculationInstance;
    Args := MDInst.CreateCalculateArgs;
    Args.CleanType := MDCalculateArgsCleanType.All;
    MDInst.Calculate(Args);
End Sub UserProc;

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

See also:

IMDCalculationInstance