Express > Express Assembly Interfaces > IEaxDataSources > IEaxDataSources.Item
Item(Index: Integer): IEaxDataSource;
Index. Data source index.
The Item property returns the object containing express report data source.
Express report index is sent by the Index parameter.
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 UserProc;
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 UserProc;
After executing the example the Exp variable will store an object containing an express report data source.
See also: