IEtlPlainFieldsMapper.Map

Syntax

Map(Field: IEtlPlainField): IExpression;

Parameters

Field. The field to be mapped.

Description

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

Example

Sub UserProc;
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(0As IEtlPlainDataJoin;
    Mapper := Object.Mapper;
    Map := Mapper.Map(Object.PlainOutput.Fields.Item(0));
End Sub UserProc;

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