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.

Example

Sub UserProc;
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(0As IEtlPlainDataJoin;
    Input := Join.PlainInputs.Item(0);
    Fields := Input.Fields;
    Field := Fields.FindById("FIELD00");
    s := Field.Name;
End Sub UserProc;

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