IMetabaseObjectControlInfo.GetObjectControlIsEmpty

Fore Syntax

GetObjectControlIsEmpty(ObjectKey: Integer): Boolean;

Fore.NET Syntax

GetObjectControlIsEmpty(ObjectKey: UInteger): Boolean;

Parameters

ObjectKey. Nested object key.

Description

The GetObjectControlIsEmpty method returns whether there are no settings to manage parameters of the specified object.

Comments

The property returns one of the following values:

Fore Example

Executing the example requires a cube with the STD_CUBE identifier in repository. This cube has the dimension in the structure which is built basing the COUNTRY parametric dictionary. Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    ControlInfo: IMetabaseObjectControlInfo;
    ControlEmpty: Boolean;
Begin
    MB := MetabaseClass.Active;
    MObj := Mb.ItemById("STD_CUBE").Edit;
    ControlInfo := MObj.Params.ControlInfo;
    ControlEmpty := ControlInfo.GetObjectControlIsEmpty(MB.GetObjectKeyById("COUNTRY"));
    Debug.WriteLine(ControlEmpty);
End Sub UserProc;

After executing the example, the development environment console displays True, if parameter management is not set up for the COUNTRY dictionary in cube and it displays False, if it is set up.

Fore Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Metabase;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    ControlInfo: IMetabaseObjectControlInfo;
    ControlEmpty: Boolean;
Begin
    MB := Params.Metabase;
    MObj := Mb.ItemById["STD_CUBE"].Edit();
    ControlInfo := MObj.Params.ControlInfo;
    ControlEmpty := ControlInfo.GetObjectControlIsEmpty(MB.GetObjectKeyById("COUNTRY"));
    System.Diagnostics.Debug.WriteLine(ControlEmpty);
End Sub;

See also:

IMetabaseObjectControlInfo