GetObjectControlIsEmpty(ObjectKey: Integer): Boolean;
GetObjectControlIsEmpty(ObjectKey: UInteger): Boolean;
ObjectKey. Nested object key.
The GetObjectControlIsEmpty method returns whether there are no settings to manage parameters of the specified object.
The property returns one of the following values:
True. Parameter management is not set for the determined object.
False. Parameter management is set for the determined object.
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.
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: