Project Workspace Gantt - Prevent accidental drag-and-drop schedule changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Project Workspace Gantt - Prevent accidental drag-and-drop schedule changes
Hello,
We are using Project Workspace and are looking for a way to prevent accidental schedule changes on the Gantt chart.
Background
Users frequently review project schedules in the Gantt chart.
However, it is very easy to accidentally drag a task bar, which immediately changes the Planned Start Date and Planned End Date.
Our goal is not to permanently lock schedules, but to allow users to control whether the Gantt chart is editable.
Example:
Edit Mode → Drag & Drop enabled
View Mode → Drag & Drop disabledor
Users must explicitly enable schedule editing
before task dates can be changed.What we have investigated
As an alternative approach, we tried implementing a custom schedule lock mechanism.
We added a custom field to the project table:
The actions successfully update the project record.
Example:
current.u_schedule_locked = true;
current.update();We also attempted to prevent date changes through a Business Rule.
Example:
var util = new ScheduleLockUtil();
if (!util.hasScheduleDateChanged(current, previous))
return;
if (!util.isScheduleLocked(current))
return;
gs.addErrorMessage('Schedule is locked.');
current.setAbortAction(true);rootProject.getValue('u_schedule_locked')planned_start_date
planned_end_date
planned_durationIssue
Although the lock flag is updated correctly, users are still able to drag tasks in the Project Workspace Gantt chart and the schedule changes are saved.
In addition, logging added to the Business Rule does not appear when dates are modified from the Gantt chart, which makes us suspect that Gantt updates may be handled differently.
Questions
Is there any supported way to disable drag-and-drop editing in Project Workspace Gantt?
Is there any supported way to make the Gantt chart read-only and allow users to switch between:
- Edit Mode
- View Mode
Is there any property or configuration to disable automatic save after dragging tasks?
Has anyone implemented a similar solution for preventing accidental schedule changes?
Any guidance or best practice would be greatly appreciated.
Thank you.