Skip to main content

How to Bind Multiple Scheduler Storages to a Scheduler in Code

The following example demonstrates how to bind the TcxSchedulerDBStorage and TcxSchedulerStorage to the scheduler using the TcxSchedulerAggregateStorage component programmatically:

// ...
begin
  // specify that the bound storage is the default storage in the application
  SchedulerAggregateStorage.Links.DefaultLink := SchedulerAggregateStorage.Links.AddStorageLink(SchedulerDBStorage);
  SchedulerAggregateStorage.Links.AddStorageLink(SchedulerStorage);
end;

It is assumed that the TcxSchedulerDBStorage and TcxSchedulerStorage are already configured at design-time. To learn how to configure these storages at design-time, refer to the Bound Mode and Unbound Mode help topics.

See Also