IEtlPlainLink.Link

Syntax

Link(D: IEtlPlainField): IEtlPlainLinkFieldMapping;

Parameters

D. Field of the data source output.

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 this example the Type variable contains binding type of the first field of the first link of ETL task objects. Repository object has the ETL identifier.

See also:

IEtlPlainLink