IEtlPlainFields.Fill

Syntax

Fill(Value: IEtlPlainFields);

Parameters

Value is the source fields list.

Description

The Fill method fills fields list in accordance with a list passed as the parameter Value.

Example

Sub Main;

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 Main;

After executing this example fields list of the second input is filled in accordance with fields list of the first input of ETL task object. Type of ETL task object is Join. Repository object has the ETL identifier.

See also:

IEtlPlainFields