InputTerm: IMsFormulaTermInfo;
The InputTerm property determines parameters of the input term corresponding to input variable.
The property is outdated, use IMsMethodSeries.Input.
Executing the example requires that the repository contains a modeling container with the MODEL_SPACE identifier. The container includes a variable with the VAR_MONTH identifier and a model with the MODEL identifier. The model uses the missing data treatment method for calculation.
Sub Main;
Var
Metabase: IMetabase;
ModelspaceDescr: IMetabaseObjectDescriptor;
Model: IMsModel;
Trans: IMsFormulaTransform;
Formula: IMsFormula;
FillGaps: IMsFillGapsTransform;
Input_Var: IVariableStub;
iVar: IMsFormulaTransformVariable;
Slice: IMsFormulaTransformSlice;
Info: IMsFormulaTermInfo;
Begin
Metabase := MetabaseClass.Active;
ModelspaceDescr := Metabase.ItemById("MODEL_SPACE");
Model := Metabase.ItemByIdNamespace("MODEL", ModelspaceDescr.Key).Edit As IMsModel;
Trans := Model.Transform;
Formula := Trans.FormulaItem(0);
FillGaps := Formula.Method As IMsFillGapsTransform;
Input_Var := Metabase.ItemByIdNamespace("VAR_MONTH", ModelspaceDescr.Key).Bind As IVariableStub;
iVar := Trans.Inputs.Add(Input_Var);
Slice := iVar.Slices.Add(Null);
Info := Trans.CreateTermInfo;
Info.Slice := Slice;
FillGaps.InputTerm := Info;
(Model As IMetabaseObject).Save;
End Sub Main;
After executing the example the source series data is extracted from the VAR_MONTH variable.
See also: