IMsProblemCalculation.CopyFact

Syntax

CopyFact: Boolean;

Description

The CopyFact property determines whether data of sample period of fact dimension is copied to dimensions by scenarios when loading data.

Comments

The property is set to False by default.

This property is available only via Fore.

Example

Executing the example requires that the repository contains a modeling container of the problem with the PROBLEM_1 identifier.

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Problem: IMsProblem;

CalcSett: IMsProblemCalculationSettings;

Calculation: IMsProblemCalculation;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemByIdNamespace("PROBLEM_1", MB.ItemById("KONT_MODEL").Key).Edit;

Problem := MObj As IMsProblem;

CalcSett := Problem.CreateCalculationSettings;

Calculation := Problem.Calculate(CalcSett);

Calculation.CopyFact := True;

Calculation.Run;

MObj.Save;

End Sub Main;

After executing the example the problem with the PROBLEM_1 identifier will be calculated. At the forecast data loading the data of the sample period of facts dimension is copied by all scenario dimensions, on which calculation was executed.

See also:

IMsProblemCalculation