FillDefault;
The FillDefault method binds data consumer fields with data source fields by default.
Data consumer fields structure is duplicated from data source fields.
Sub Main;
Var
MB: IMetabase;
Object: IMetabaseObject;
EtlTask: IEtlTask;
Links: IEtlPlainLinks;
Link: IEtlPlainLink;
Output: IEtlPlainOutput;
Input: IEtlPlainInput;
Begin
MB:=MetabaseClass.Active;
Object:=MB.ItemById("ETL").Edit;
EtlTask:=Object As IEtlTask;
Link:=EtlTask.Links.Item(0);
Input:=Link.DestinationObjectInput;
Output:=Link.SourceObjectOutput;
Link.FillDefault;
Object.Save;
End Sub Main;
After executing the example default binding of data consumer fields is set by the first link. The repository object has the ETL identifier.
See also: