Fields: IEtlPlainFields;
The Fields property returns an 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 this example the "i" variable contains the number of input fields of the ETL task object. Type of ETL task object is Sorting. Repository object has the ETL identifier.
See also: