GetObjectControlIsEmpty(ObjectKey: Integer): Boolean;
ObjectKey. Nested object key.
The GetObjectControlIsEmpty method returns whether there are no settings to manage parameters of the specified object.
Available values:
True. Parameter management is not set up for the specified object.
False. Parameter management is set for the determined object.
Executing the example requires that the repository contains a cube with the STD_CUBE identifier. 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.
See also: