IEtlPlainLink.Link

Syntax

Link(D: IEtlPlainField): IEtlPlainLinkFieldMapping;

Parameters

D. Data source output field.

Description

The Link property returns consumer fields binding with source fields, or substituted value depending on binding type.

Example

Sub Main;

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 Main;

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:

IEtlPlainLink