Clear;
The Clear method deletes all data sources from the collection of express report data sources.
Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier.
Add links to the Express and Metabase system assemblies.
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 the example all data sources in the collection of express report data sources will be deleted.
See also: