Map(Field: IEtlPlainField): IExpression;
Field. The field to be mapped.
The Map property returns the object that contains a formula of the link between output field and input fields.
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(0) As 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: