Fill(Value: IEtlPlainFields);
Value. List of provider fields list.
The Fill method fills the list of fields in accordance with the list passed as the Value parameter.
Sub UserProc;
Var
MB: IMetabase;
Object: IMetabaseObject;
EtlTask: IEtlTask;
Join: IEtlPlainDataJoin;
Input, Input1: IEtlPlainInput;
Fields, Fields1: IEtlPlainFields;
Begin
MB := MetabaseClass.Active;
Object := MB.ItemById("ETL").Edit;
EtlTask := Object As IEtlTask;
Join := EtlTask.Item(0) As IEtlPlainDataJoin;
Input := Join.PlainInputs.Item(0);
Input1 := Join.PlainInputs.Item(1);
Fields := Input.Fields;
Fields1 := Input1.Fields;
Fields1.Fill(Fields);
Object.Save;
End Sub UserProc;
After executing the example the list of fields of the second input is filled in accordance with the list of fields of the first input of ETL task object. The type of ETL task object is Join. The repository object has the ETL identifier.
See also: