Auto adjust schedule

Community plugins and extensions
Post Reply
User avatar
igall
Premium Member
Premium Member
Posts: 25
Joined: Mon May 09, 2016 10:33 am

Auto adjust schedule

Post by igall » Mon May 09, 2016 10:36 am

Hi,

We need to automatically re adjust task schedule when removing
1. Dependencies
2. Constraint

What happens now is when you remove Constraint/Dependency the task is still on its calculated start/end dates, we need it to move and be rescheduled according to project's calendar.

Thanks!
Igal

User avatar
mats
Core Developer
Core Developer
Posts: 15590
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Auto adjust schedule

Post by mats » Mon May 09, 2016 11:31 am

Currently this is not the way it works, but you can simply listen for the related events and reschedule the task manually by calling:

http://bryntum.com/docs/scheduling/4.x/ ... ToCalendar
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
igall
Premium Member
Premium Member
Posts: 25
Joined: Mon May 09, 2016 10:33 am

Re: Auto adjust schedule

Post by igall » Mon May 09, 2016 12:57 pm

thanks, could you please reference me to the events in the API,
I could not find event for Constraint removal or Dependency removal other that overriding the Gnt.model.Task class.

User avatar
mats
Core Developer
Core Developer
Posts: 15590
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Auto adjust schedule

Post by mats » Mon May 09, 2016 3:27 pm

Need to look further then :) Store#remove event:

https://docs.sencha.com/extjs/6.0/6.0.0 ... ent-remove

For the constraint removal, there is not event yet but you can listen to 'update' event on the store and check what field was updated.
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

Post Reply