IEtlPlainInput.Fields

Syntax

Fields: IEtlPlainFields;

Description

The Fields property returns the object that contains a list of current object input fields.

Example

Sub UserProc;
Var
    MB: IMetabase;
    EtlTask: IEtlTask;
    ALLLinks: IEtlPlainLinks;
    Link: IEtlPlainLink;
    Input: IEtlPlainInput;
    Fields: IEtlPlainFields;
    i: Integer;
Begin
    MB := MetabaseClass.Active;
    EtlTask := MB.ItemById("ETL").Bind As IEtlTask;
    ALLLinks := EtlTask.Links;
    Link := ALLLinks.Item(7);
    Input := Link.DestinationObjectInput;
    Fields := Input.Fields;
    i := Fields.Count;
End Sub UserProc;

After executing the example the "i" variable contains the number of input fields of the consumer object. The repository object has the ETL identifier.

See also:

IEtlPlainInput