PlainInputField(Field: Integer, Input: Integer): IEtlPlainField;
Field is a position of an index field.
Input is an index of data source.
The PlainInputField property determines a field of corresponding data source that is included in given index.
Sub Main;
Var
MB: IMetabase;
EtlTask: IEtlTask;
Join: IEtlPlainDataJoin;
Index: IEtlPlainIndex;
Field: IEtlPlainField;
S: String;
Begin
MB:=MetabaseClass.Active;
EtlTask:=MB.ItemById("ETL").Bind As IEtlTask;
Join:=EtlTask.Item(0) As IEtlPlainDataJoin;
Index:=Join.Index;
Field:=Index.PlainInputField(0,0);
s:=Field.Id;
End Sub Main;
After executing this example the "s" variable contains an identifier of the first data source field that corresponds to the first record in an index field. Repository object has the ETL identifier.
See also: