Skip to main content

TcxSchedulerEvent.ResourceID Property

Specifies the resource’s unique identifier for the user event.

Declaration

property ResourceID: Variant read; write;

Property Value

Type
Variant

Remarks

Resources are used to group schedules (if the View’s GroupingKind property is set to gkByResource or gkByDate and more than one resource is defined) to facilitate managing user time.

If the user event is assigned to more than one resource then the ResourceID property contains a collection of the ids for the resources to which the user event belongs. To store information on ids of different resources associated with a particular user event, specify the type of the ResourceID dataset field as TBlobField. If the TBlobField type is applied, the ResourceID property represents data in a binary format.

Assigning a user event to different resources can be done programmatically and via dialogs at runtime.

An end-user can associate resources with a user event using the Resource check combo box located in the Event dialog. The Resource check combo box is available in the dialog, if the scheduler’s EventOperations.SharingBetweenResources property is set to True.

It can be done programmatically using the ShareWithResource method.

See Also