IEtlPlainFields.FindById

Syntax

FindById(Id: String): IEtlPlainField;

Parameters

Id - field identifier.

Description

The FindById method searches by an identifier and returns the object that contains input/output field of ETL task object. An identifier is passed as the Id parameter.

Example

Sub Main;

Var

MB: IMetabase;

Object: IMetabaseObject;

EtlTask: IEtlTask;

Join: IEtlPlainDataJoin;

Input: IEtlPlainInput;

Fields: IEtlPlainFields;

Field: IEtlPlainField;

s: String;

Begin

MB:=MetabaseClass.Active;

Object:=MB.ItemById("ETL").Edit;

EtlTask:=Object As IEtlTask;

Join:=EtlTask.Item(0) As IEtlPlainDataJoin;

Input:=Join.PlainInputs.Item(0);

Fields:=Input.Fields;

Field:=Fields.FindById("FIELD00");

s:=Field.Name;

End Sub Main;

After executing the example the "s" variable contains name of the field with the FIELD00 identifier. The type of ETL task object is Join. The repository object has the ETL identifier.

See also:

IEtlPlainFields