PlainInputField(Field: Integer, Input: Integer): IEtlPlainField;
Field - index field position.
Input - data source index.
The PlainInputField property determines a field of corresponding data source that is included into this 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 the example the "s" variable contains an identifier of the first data source field that corresponds to the first record in an index field. The repository object has the ETL identifier.
See also: