Fields: IEtlPlainFields;
The Fields property returns the object that contains parent fields list.
Sub Main;
Var
MB: IMetabase;
EtlTask: IEtlTask;
Sort: IEtlPlainDataSort;
Index: IEtlPlainIndex;
Fields: IEtlPlainFields;
i: Integer;
Begin
MB:=MetabaseClass.Active;
EtlTask:=MB.ItemById("ETL").Bind As IEtlTask;
Sort:=EtlTask.Item(0) As IEtlPlainDataSort;
Index:=Sort.Index;
Fields:=Index.PlainInputField(0,0).Fields;
i:=Fields.Count;
End Sub Main;
After executing the example the "i" variable contains the number of input fields of the ETL task object. The type of ETL task object is Sort. The repository object has the ETL identifier.
See also: