IEtlPlainInputs.Remove

Syntax

Remove(Index: Integer): Boolean;

Parameters

Index is an index of ETL task object input.

Description

The Remove method removes an input of ETL task object index of which is passed by the Index parameter.

Example

Sub Main;

Var

MB: IMetabase;

Object: IMetabaseObject;

EtlTask: IEtlTask;

Join: IEtlPlainDataJoin;

Inputs: IEtlPlainInputs;

Begin

MB:=MetabaseClass.Active;

Object:=MB.ItemById("ETL").Edit;

EtlTask:=Object As IEtlTask;

Join:=EtlTask.Item(0) As IEtlPlainDataJoin;

Inputs:=Join.PlainInputs;

Inputs.Remove(Inputs.Count-1);

Object.Save;

End Sub Main;

After executing this example the last input of the first ETL task object is removed. Type of ETL task object is Join. Repository object has the ETL identifier.

See also:

IEtlPlainInputs