We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Project Workspace Gantt - Prevent accidental drag-and-drop schedule changes

Ryo14
Tera Contributor

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 disabled

or

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:

 -u_schedule_locked
and added custom actions in Project Workspace:
 -Lock Schedule
 -Unlock Schedule
 

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);
The Script Include checks the project-level lock flag:
rootProject.getValue('u_schedule_locked')
and is intended to block updates to:
planned_start_date
planned_end_date
planned_duration
 

Issue

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

  1. Is there any supported way to disable drag-and-drop editing in Project Workspace Gantt?

  2. Is there any supported way to make the Gantt chart read-only and allow users to switch between:

    • Edit Mode
    • View Mode
  3. Is there any property or configuration to disable automatic save after dragging tasks?

  4. Has anyone implemented a similar solution for preventing accidental schedule changes?

Any guidance or best practice would be greatly appreciated.

Thank you.

0 REPLIES 0