IFormulaTransformModel.AllowForecastBeforeIdent

Syntax

AllowForecastBeforeIdent: Boolean;

Description

The AllowForecastBeforeIdent property determines whether forecasting period can be before sample period.

Comments

Available values:

Example

Executing the example requires a workbook with the WB_AUTOPERIOD identifier containing a calculated series. This series must be the first in data table and must be calculated by means of forecasting method.

Add links to the Cubes, Express, Laner, Metabase, Ms system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    ErAn: IEaxAnalyzer;
    Laner: ILaner;
    Series: ILanerSeries;
    Serie: ILanerCalculateSerie;
    TransformModel: IFormulaTransformModel;
Begin
    // Get current repository
    mb := MetabaseClass.Active;
    // Get workbook
    ErAn := mb.ItemById("WB_AUTOPERIOD").Edit As IEaxAnalyzer;
    Laner := ErAn.Laner;
    // Get the first series in workbook table
    Series := laner.Series;
    Serie := Series.Item(0As ILanerCalculateSerie;
    // Set up series calculation period
    TransformModel := Serie.Transform;
    TransformModel.AutoPeriod := TransformModelAutoPeriodOptions.None;
    // Specify that forecasting period can be before sample period
    TransformModel.AllowForecastBeforeIdent := True;
    // Set sample period borders
    TransformModel.IdentificationStartDate := DateTime.Parse("01.01.2010");
    TransformModel.IdentificationEndDate := DateTime.Parse("01.01.2015");
    // Set forecasting period borders
    TransformModel.ForecastStartDate := DateTime.Parse("31.12.2005");
    TransformModel.ForecastEndDate := DateTime.Parse("31.12.2009");
    // Save changes
    (ErAn As IMetabaseObject).Save;
End Sub UserProc;

 

See also:

IFormulaTransformModel