IEtlPlainFields.Fill

Syntax

Fill(Value: IEtlPlainFields);

Parameters

Value - source fields list.

Description

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

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 the example the fields list of the second input is filled in accordance with fields list 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:

IEtlPlainFields