FindById(Id: String): ICubeMetaUpdateAdditionalObjects;
Id. Identifier of the required object.
The FindById method searches for an object in the collection by its identifier.
If the object with the specified identifier is not found, the method returns Null.
Executing the example requires that the repository contains a replication object with the CUBE_META_UPD identifier. Add links to the Cubes and Metabase system assemblies.
Sub Button3OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Mb: IMetabase;
Update: ICubeMetaUpdateEx;
AdditionalObjs: ICubeMetaUpdateAdditionalObjects;
AddObj: ICubeMetaUpdateAdditionalObject;
Begin
Mb := MetabaseClass.Active;
Update := Mb.ItemById("CUBE_META_UPD").Bind As ICubeMetaUpdateEx;
AdditionalObjs := Update.AdditionalObjects;
AddObj := AdditionalObjs.FindById("REPORT");
If AddObj <> Null Then
Debug.WriteLine(Object is found);
Else
Debug.WriteLine(Object is not found);
End If;
End Sub Button3OnClick;
After executing the example the console window displays the result of searching the object with the REPORT identifier among the objects copied together with the time series database.
See also: