FetchAll: Boolean;
The FetchAll property determines whether the values of system and custom attributes of MDM dictionary should be loaded to cache together.
Available values:
True. The user attributes values are loaded (or will be loaded) to cache along with the system attributes values. The dictionary opening will be taking more time but the work with dictionary elements will speed up.
False. Default value. The system attributes only are loaded to cache. If user attributes values were loaded, they are cleared. The dictionary opening will be taking less time but the work with dictionary elements will slow down.
Executing the example requires that the repository contains an MDM repository with the RDS_REPO identifier containing a dictionary with the OBJ_DICT identifier. The example also requires a form with a button named Button1 on it and the UiRdsDictionary component named UiRdsDictionary1, that is a data source for the RdsDictionaryBox component.
Add a link to the Metabase system assembly.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
MB: IMetabase;
RdsDescr: IMetabaseObjectDescriptor;
Dict: IRdsDictionary;
Begin
UiRdsDictionary1.Active := False;
MB := MetabaseClass.Active;
RdsDescr := MB.ItemById("RDS_REPO");
Dict := MB.ItemByIdNamespace("OBJ_DICT", RdsDescr.Key).Bind As IRdsDictionary;
UiRdsDictionary1.Object := Dict;
UiRdsDictionary1.FetchAll := True;
UiRdsDictionary1.Active := True;
End Sub Button1OnClick;
Clicking the button opens the OBJ_DICT dictionary in the RdsDictionaryBox component. Along with the system attributes values the user attributes values will be loaded to cache.
See also: