Is it possible to reschedule appointments from one provider/person to another (bulk reschedule)
sample scenario
If a person is on leave all appointments of that person is to be rescheduled to another person to provide the same service.
please let me know if this provision is supported or not in dhtmlx scheduler
Hello,
You can get events which occur during the specified period, check their provider and change it, if this person is on leave.
docs.dhtmlx.com/scheduler/api__ … vents.html
Thanks for your reply.Actually i wanted to know if we can select multiple events together via any means(either mouse drag or selecting the events) so that we can move multiple events to another whole new slot set.
Sample scenario
Suppose a person is busy in the morning slot, is it possible to shift his whole set of events to the afternoon slot set.
Hello,
Similar way like with provider. You also can update start_date of certain events and update them.
var evs = scheduler.getEvents(new Date(2017,1,10,8),new Date(2017,1,10,12));
for (var i=0; i<evs.length; i++){
var startDate = scheduler.getEvent(evs[i].id).start_date;
var newStartDate = scheduler.date.add(startDate, 4, 'hour');
scheduler.getEvent(evs[i].id).start_date = newStartDate;
scheduler.updateEvent(evs[i].id);
}
docs.dhtmlx.com/scheduler/api__ … event.html
docs.dhtmlx.com/scheduler/date_formats.html
We are using dhtmlx scheduler and our requirement scenario is mentioned below. Wanted to know if this is supported in the scheduler.Screen shots are attached
Sample scenario
Suppose two events are scheduled for James Smith, say A1(4:00 -4:30) and A2(6:00-6:30). If John Smith is on leave unexpectedly then his appointments have to be rescheduled to John Williams to the same timing by dragging both the events together if there is no conflict.
Hello,
Unfortunately you can’t drag two tasks together at the same time.
Nonetheless to reschedule tasks to the same timing you need to use dhtmlxscheduler_collision.js extension and set scheduler.config.collision_limit to 1 (default value). When you drag the first task, the second will move to new position accordingly when “onEventCollision” event fires.
Example code: docs.dhtmlx.com/scheduler/snippet/b317c026
Thank you.