ICubeMetaUpdateAdditionalObjects.FindById

Syntax

FindById(Id: String): ICubeMetaUpdateAdditionalObjects;

Parameters

Id. Identifier of the required object.

Description

The FindById method searches for an object in the collection by its identifier.

Comments

If the object with the specified identifier is not found, the method returns Null.

Example

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:

ICubeMetaUpdateAdditionalObjects