Skip to main content

TcxSchedulerDBStorage.GenerateGUIDForID Property

Specifies whether the user event‘s ID should be generated as GUID.

Declaration

property GenerateGUIDForID: Boolean read; write; default False;

Property Value

Type Default
Boolean False

Remarks

Set the GenerateGUIDForID property to True to make the storage manager automatically generate the unique identifiers of user events (see the TcxSchedulerEvent.ID property) as GUID, thus ensuring that the unique identifier of each new record will be created in the proper manner. The type of the ID field in the underlying dataset should be defined as TGuidField or TStringField with a length of 38 characters. If the responsibility of generating the unique number should be implemented by the underlying DBMS or by the developer, then set the GenerateGUIDForID property to False.

Note

The type of the ID field should be the same as the ParentID field’s type.

The default value of the GenerateGUIDForID property is False.

See Also