Link(D: IEtlPlainField): IEtlPlainLinkFieldMapping;
D. Data source output field.
The Link property returns binding of consumer fields with provider fields, or substitution value depending on binding type.
Sub UserProc;
Var
MB: IMetabase;
EtlTask: IEtlTask;
Links: IEtlPlainLinks;
Link: IEtlPlainLink;
Input: IEtlPlainInput;
Field: IEtlPlainField;
FileMapp: IEtlPlainLinkFieldMapping;
Type: Integer;
Begin
MB := MetabaseClass.Active;
EtlTask := MB.ItemById("ETL").Bind As IEtlTask;
Links := EtlTask.Links;
Link := Links.Item(0);
Input := Link.DestinationObjectInput;
Field := Input.Fields.Item(0);
FileMapp := Link.Link(Field);
Type := FileMapp.Type;
End Sub UserProc;
After executing the example the Type variable contains binding type of the first field of the first link of ETL task objects. The repository object has the ETL identifier.
See also: