IEtlPlainFieldsMapper.Map

Syntax

Map(Field: IEtlPlainField): IExpression;

Parameters

Field - field, for which binding must be determined.

Description

The Map property returns the object that contains a formula of the link between output field and input fields.

Example

Sub Main;

Var

MB: IMetabase;

EtlTask: IEtlTask;

Object: IEtlPlainDataJoin;

Mapper: IEtlPlainFieldsMapper;

Map: IExpression;

Begin

MB:=MetabaseClass.Active;

EtlTask:=MB.ItemById("ETL").Bind As IEtlTask;

Object:=EtlTask.Item(0) As IEtlPlainDataJoin;

Mapper:=Object.Mapper;

Map:=Mapper.Map(Object.PlainOutput.Fields.Item(0));

End Sub Main;

After executing the example the Map variable contains a formula of the link between output field and input fields. ETL task object is Join. The repository object has the ETL identifier.

See also:

IEtlPlainFieldsMapper