IRdsDictionary.TimeDependent

Syntax

TimeDependent: Boolean;

Description

The TimeDependent property determines whether dictionary elements are changed in time.

Comments

Default property value is False, if the property is set to True, a dictionary keeps a history of changes of element values. To track and control a history, a dictionary has three basic attributes VERSION, INDATE and OUTDATE. Also, the dictionary has the system parameter CurDate used to select elements by relevant date.

Example

Executing the example requires the MDM repository NSI_1 that contains an MDM dictionary with the Dict_1 identifier.

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Dict: IRdsDictionary;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemByIdNamespace("Dict_1", MB.ItemById("NSI_1").Key).Edit;

Dict := MObj As IRdsDictionary;

Dict.TimeDependent := True;

MObj.Save;

End Sub Main;

After executing the example elements indicate whether they are changed in time in the Dict_1 dictionary.

See also:

IRdsDictionary