InitMetabase(
pMetabaseObj: IMetabaseObject;
pMetabaseObjectDescriptor: IMetabaseObjectDescriptor;
pMetabase: IMetabase);
pMetabaseObj. Repository object.
pMetabaseObjectDescriptor. Repository object description.
pMetabase. Repository connection.
The InitMetabase initializes work with repository objects.
To get analytical data area parameters, use the IEaxDataAreaSlice.Params property.
Executing the example requires an express report with the EAX_DATAAREA identifier.
Add links to the Metabase and Express system assemblies.
Sub UserProc;
Var
mb: IMetabase;
mbObj: IMetabaseObject;
mbObjDesc: IMetabaseObjectDescriptor;
Expr: IEaxAnalyzer;
DArea: IEaxDataArea;
Begin
mb := MetabaseClass.Active;
mbObjDesc := mb.ItemById("EAX_DATAAREA");
mbObj := mbObjDesc.Bind;
Expr := mbObj As IEaxAnalyzer;
DArea := Expr.DataArea;
DArea.InitMetabase(mbObj, mbObjDesc, mb);
Debug.WriteLine("Number of slices: " + DArea.Slices.Count.ToString);
DArea.Execute;
End Sub UserProc;
After executing the example the specified repository object (express report) is initialized, the console window shows the number of slices, which was used as data sources for express report.
See also: