Clear;
The Clear method removes all sources from the collection of express report sources.
Executing this example requires that the repository contains an express report with the EXPRESS_REPORT identifier.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Expr: IEaxAnalyzer;
ExpDs: IEaxDataSources;
Res: String;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("EXPRESS_REPORT").Edit;
Expr := MObj As IEaxAnalyzer;
ExpDs := Expr.DataSources;
ExpDs.Clear;
MObj.Save;
End Sub Main;
After executing this example all sources in the express report source collection are deleted.
See also: