IUiRdsDictionary.FetchAll

Syntax

FetchAll: Boolean;

Description

The FetchAll property determines whether the values of system and custom attributes of MDM dictionary should be loaded to cache together.

Comments

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 - only the system attributes values are loaded to cache. If the 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.

By default the property is set to False.

Example

Executing the example requires the MDM repository with the MDM_REPO identifier containing the dictionary with the OBJ_DICT identifier.

The form with its button identified as Button1 and the UiRdsDictionary component with the UiRdsDictionary1 identifier, that is a RdsDictionaryBox component data source, are required. Also, the link to the Metabase system assembly needs to be added.

Click the button to start executing this example.

    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;

After executing the example the OBJ_DICT dictionary is opened in the RdsDictionaryBox component. Along with the system attributes values the user attributes values will be loaded to cache.

See also:

IUiRdsDictionary