IMsCalculationChainMetaModel.SeparateDataLoading

Syntax

SeparateDataLoading: Boolean;

Description

The SeparateDataLoading property determines whether data is loaded separately from the rest of task.

Comments

The property is relevant when working with various blocks in calculation algorithm, if they use different selection of the same data source.

Available values:

Example

Executing the example requires that the repository contains a calculation algorithm with the ALGORITHM identifier. The algorithm contains two calculation blocks that are created on the same data source.

Add links to the Algo, Metabase, Ms system assemblies and theCalculation Algorithm Core custom assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObjectDescriptor;
    Algo: ICalcObject;
    CalcAlgo: ICalcAlgorithm;
    MetaModel: IMsMetaModel;
    MetaModelChain: IMsCalculationChainMetaModel;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById(
"ALGORITHM");
    Algo := CalcObjectFactory.CreateCalcObject(MObj, 
True);
    CalcAlgo := Algo 
As ICalcAlgorithm;
    MetaModel := CalcAlgo.MetaModel;
    MetaModelChain := MetaModel.CalculationChain.Item(
0As IMsCalculationChainMetaModel;
    MetaModelChain.SeparateDataLoading := 
True;
    MetaModelChain := MetaModel.CalculationChain.Item(
1As IMsCalculationChainMetaModel;
    MetaModelChain.SeparateDataLoading := 
True;
    CalcAlgo.Save;
End Sub UserProc;

After executing the example, separate data loading is enabled for calculation blocks.

See also:

IMsCalculationChainMetaModel