IsEmpty: Boolean;
IsEmpty: Boolean;
The IsEmpty property returns whether nested object parameter management settings are absent.
The property returns one of the following values:
True. Parameter management is not set for the object.
False. Parameter management is set for the 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.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
ControlInfo: IMetabaseObjectControlInfo;
Empty: Boolean;
Begin
MB := MetabaseClass.Active;
MObj := Mb.ItemById("STD_CUBE").Bind;
ControlInfo := MObj.Params.ControlInfo;
Empty := ControlInfo.FindByKey(MB.GetObjectKeyById("COUNTRY")).IsEmpty;
Debug.WriteLine(Empty);
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;
Empty: Boolean;
Begin
MB := Params.Metabase;
MObj := Mb.ItemById["STD_CUBE"].Bind();
ControlInfo := MObj.Params.ControlInfo;
Empty := ControlInfo.FindByKey(MB.GetObjectKeyById("COUNTRY")).IsEmpty;
System.Diagnostics.Debug.WriteLine(Empty);
End Sub;
See also: