IMDCalculationCalculateArgs.UpdateType

Syntax

UpdateType: MDCalculateArgsUpdateType;

Description

The UpdateType property determines a method of data update on calculation.

Example

Executing the example requires that the repository contains multidimensional calculation on DB server with 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.None;

Args.UpdateType := MDCalculateArgsUpdateType.NotNull;

Args.AutoSaveSQL := TriState.OnOption;

MDInst.Calculate(Args);

End Sub Main;

After executing the example multidimensional calculation is executed on DB server. The data consumer is not cleared before calculation. Only the values are updated, by which formulas are set.

See also:

IMDCalculationCalculateArgs