How does ‘startDate’, ‘constraintType’, ‘constraintDate’ work?
Posted: Wed Aug 21, 2019 3:35 am
I want the start time of task to be arranged according to my own'Start Date', as long as the start time of'task'is not earlier than the start time of'project'. But when I set'constraintDate'as'startDate' for'project', the time for'task'to be displayed becomes'startDate' for'project'. If I set'constraintDate'to'startDate' of'task', the start time of'task'cannot be chosen earlier than that date, but can only be postponed. This makes it impossible for my clients to use it at all.
The problem now is that the start time of the task becomes `item. constraintDate'.
I hope the task starts with'item. startDate'and can be modified at will within the time range of'item. constraintDate'.item.startDate = new Date (2019, 3, 25);
item.constraintType = "startnoearlierthan";
item.constraintDate = new Date(2019, 0, 1)
The problem now is that the start time of the task becomes `item. constraintDate'.
If I set `constraintDate'to be the same as `startDate', then task modification can never be earlier than this time. Once the user operates incorrectly, it can only delete all task reconstruction.item.startDate = new Date (2019, 3, 25);
item.constraintType = "startnoearlierthan";
item.constraintDate = new Date(2019, 3, 25)