IMDCalculationInstance.CreateCalculateArgs

Syntax

CreateCalculateArgs: IMDCalculationCalculateArgs;

Description

The CreateCalculateArgs method creates an object specifying multidimensional calculation on DB server 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