IEtlPlainOutput.Fields

Syntax

Fields: IEtlPlainFields;

Description

The Fields property returns an object that contains list of current object output fields.

Example

Sub Main;

Var

MB: IMetabase;

EtlTask: IEtlTask;

ALLLinks: IEtlPlainLinks;

Link: IEtlPlainLink;

Output: IEtlPlainOutput;

Fields: IEtlPlainFields;

i: Integer;

Begin

MB:=MetabaseClass.Active;

EtlTask:=MB.ItemById("ETL").Bind As IEtlTask;

ALLLinks:=EtlTask.Links;

Link:=ALLLinks.Item(7);

Output:=Link.SourceObjectOutput;

Fields:=Output.Fields;

i:=Fields.Count;

End Sub Main;

After executing this example the "i" variable contains number of output fields of the current object. Repository object has the ETL identifier.

See also:

IEtlPlainOutput