Item(Index: Integer): IEaxDataSource;
Index is the index of a data source.
The Item property returns an object that contains the express report data source index of which is passed by the Index parameter.
Executing the 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;
Exp: IEaxDataSource;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("EXPRESS_REPORT").Edit;
Expr := MObj As IEaxAnalyzer;
ExpDs := Expr.DataSources;
Exp := ExpDs.Item(0);
MObj.Save;
End Sub Main;
After executing this example the Exp variable will store an object containing an express report data source.
See also: