FindById(Id: String): IEtlPlainField;
Id is a field ID.
The FindById method searches by an identifier and returns an object that contains input/output field of ETL task object. An identifier is passed as the Id parameter.
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 this example the "s" variable contains name of the field with the FIELD00 identifier. Type of ETL task object is Join. Repository object has the ETL identifier.
See also: