ShowHidden: Boolean;
The ShowHidden property determines whether hidden elements are included in the dictionary data.
Available values:
True. Hidden elements are included in the dictionary data.
False. Default value. Hidden elements are not included in the dictionary data.
The IRdsDictionaryInstance.CreateDimInstance method enables the user to get dictionary data based on the current set of elements.
Executing the example requires a form that contains a button with the Button1 identifier and the UiDimension component with the UiDimension1 identifier. UiDimension1 is data source for the DimensionTree component. Also, there must be the MDM repository with the MDM_REPO identifier that contains a dictionary with the OBJ_DICT identifier.
It is necessary to add links to the Metabase, Rds system assemblies for correct execution of the example. Click the button to start executing the example.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Mb: IMetabase;
RdsDescr: IMetabaseObjectDescriptor;
DictDescr: IMetabaseObjectDescriptor;
RdsI: IRdsDictionaryInstance;
Begin
Mb := MetabaseClass.Active;
Mb.Cache.FlushAll;
RdsDescr := Mb.ItemById("RDS_REPO");
DictDescr := Mb.ItemByIdNamespace("OBJ_DICT", RdsDescr.Key);
RdsI := DictDescr.Open(Null) As IRdsDictionaryInstance;
RdsI.ShowHidden := True;
UiDimension1.Instance := RdsI.CreateDimInstance;
End Sub Button1OnClick;
After executing the example data of the OBJ_DICT dictionary along with hidden elements is displayed in the DimensionTree elements.
See also: