IEtlPlainLinkFieldMapping.Value

Syntax

Value: Variant;

Description

The Value property determines constant value if type of the link between data consumer and data source fields is Constant.

Example

Sub Main;

Var

MB: IMetabase;

Object: IMetabaseObject;

EtlTask: IEtlTask;

Links: IEtlPlainLinks;

Link: IEtlPlainLink;

Output: IEtlPlainOutput;

Input: IEtlPlainInput;

Field: IEtlPlainField;

FieMapp: IEtlPlainLinkFieldMapping;

Begin

MB:=MetabaseClass.Active;

Object:=MB.ItemById("ETL").Edit;

EtlTask:=Object As IEtlTask;

Link:=EtlTask.Links.Item(0);

Input:=Link.DestinationObjectInput;

Output:=Link.SourceObjectOutput;

Field:=Input.Fields.Item(2);

FieMapp:=Link.Link(Field);

FieMapp.Type:=1 As EtlPlainLinkFieldMappingType;

FieMapp.Value:="Pole_3";

Object.Save;

End Sub Main;

After executing the example the Pole_3 constant corresponds to the third field of data consumer input.

See also:

IEtlPlainLinkFieldMapping