IMsFormulaTermInfo.DateParamID

Syntax

DateParamID: String;

Description

The DateParamID property identifies the calendar-point parameter.This property is used, if the term is the (Type = MsFormulaTermType.ParamDate) calendar parameter.

Comments

If period or particular date were set via the DateParamID property, this date will not be taken into account for calculation of Start of Data/End of Data.

Example

Executing the example requires that the repository contains a modeling container with the CONT_M identifier. The model with the Model identifier must be present in this container.

Sub Main;

Var

mb: IMetabase;

cm: IMetabaseObjectDescriptor;

Model: IMsModel;

Formula: IMsFormula;

Determ: IMsDeterministicTransform;

Transform: IMsFormulaTransform;

Term: IMsFormulaTerm;

TermInfo: IMsFormulaTermInfo;

InputsVar: IMsFormulaTransformVariables;

ParamVar: IMsFormulaTransformVariable;

Slice: IMsFormulaTransformSlice;

Begin

mb := MetabaseClass.Active;

cm := mb.ItemById("CONT_M");

Model := mb.ItemByIdNamespace("Model", cm.Key).Edit As IMsModel;

Transform := Model.Transform;

Formula := Transform.FormulaItem(0);

Determ := Formula.Method As IMsDeterministicTransform;

InputsVar := Transform.Inputs;

ParamVar := InputsVar.AddParamVariable("VAR_PARAM");

Slice := ParamVar.Slices.Add(Null);

Term := Determ.Operands.Add(Slice);

TermInfo := Term.TermInfo;

TermInfo.Type := MsFormulaTermType.ParamDate;

TermInfo.DateParamID := "VAR_PARAM";

(Model As IMetabaseObject).Save;

End Sub Main;

After executing the example, the VAR_PARAM calendar parameter is added for model.

See also:

IMsFormulaTermInfo