Implementing a 'Break and Reschedule' Function in the Scheduler Component
3 years ago.
I am in need of some guidance regarding an issue I am facing. Here's the problem I'm trying to solve:
I have a task, let's call it "Task 1". I want to be able to right-click on this task to see an option labeled "break". When "break" is selected, a form should appear asking for the reason for the break, the duration of the break, and a different machine to which the remaining task could be scheduled.
For instance, if a user fills out the form with the details [“machine not work properly“, 3hr, Loom4], I want the program to automatically adjust the display of Task 1. The initial five hours (derived from total hours minus the break hour, i.e., 8-3 = 5 hours) should be displayed in blue, while the remaining 3 hours should be shown in red.
Additionally, the system should automatically create a new 3-hour task on Loom4, connected with Task 1.
Essentially, the visualization and task management should look like this:
Is such a function feasible to implement?
Related question: Multiple background colors in event (Scheduler)
DayPilot