Page 1 of 2

[ANGULAR] The data is incorrect if the direction is set Backward

Posted: Tue Mar 21, 2023 5:17 am
by shimnx

This is an advanced example of version 5.2.9 on the official website.
I changed the data in the launch-saas file to my data, and then set direction to Backward. At this time, the two data on the interface were different from the actual data.


Re: [ANGULAR] The data is incorrect if the direction is set Backward

Posted: Tue Mar 21, 2023 2:06 pm
by alex.l

Hi,

That happened because of constraints. You set

"constraintDate": "2022-05-06",
"constraintType": "startnolaterthan",

So there is a "conflict", since it's also manuallyScheduled and backward directed, and project's endDate is in October.
Try to adjust your data.


Re: [ANGULAR] The data is incorrect if the direction is set Backward

Posted: Wed Mar 22, 2023 2:46 am
by shimnx

I set both constraintDate and constraintType in the data to null, but it is still problematic


Re: [ANGULAR] The data is incorrect if the direction is set Backward

Posted: Thu Mar 23, 2023 8:23 am
by arcady

What exactly is incorrect? ..which task and what value do you expect it to have?


Re: [ANGULAR] The data is incorrect if the direction is set Backward

Posted: Thu Mar 23, 2023 8:30 am
by shimnx

The tasks named Overall Risk Management and Project Management start time is 2022-05-06 and end time is 2022-10-01. But in the gantt chart they show the start time and end time is 2022-10-01


Re: [ANGULAR] The data is incorrect if the direction is set Backward

Posted: Fri Mar 24, 2023 4:55 am
by tasnim

Hi,

The task date gets recalculated every time. Please study this guide about task scheduling https://bryntum.com/products/gantt/docs/guide/engine/gantt_events_scheduling


Re: [ANGULAR] The data is incorrect if the direction is set Backward

Posted: Fri Mar 24, 2023 5:22 am
by shimnx

Sorry, my problem is that the data of the start time of these two tasks is different from that displayed on the interface. I'm not doing anything during the data load, nor is there any constraintType or constraintDate in the data.I know the tasks will be rescheduled every time, but why is the start time of these two tasks 2022-10-01


Re: [ANGULAR] The data is incorrect if the direction is set Backward

Posted: Fri Mar 24, 2023 6:34 am
by arcady

Sorry, my problem is that the data of the start time of these two tasks is different from that displayed on the interface. I'm not doing anything during the data load, nor is there any constraintType or constraintDate in the data.I know the tasks will be rescheduled every time, but why is the start time of these two tasks 2022-10-01

I don't see start dates change to that value.
I've checked the provided file. Loaded it with the advanced demo. I've tried first forward scheduling and then switched the project direction to Backward mode and the task dates in both cases look this:

1.png
1.png (44.47 KiB) Viewed 385 times

Re: [ANGULAR] The data is incorrect if the direction is set Backward

Posted: Fri Mar 24, 2023 6:35 am
by arcady

Please provide a runnable test case demonstrating the issue.


Re: [ANGULAR] The data is incorrect if the direction is set Backward

Posted: Fri Mar 24, 2023 6:45 am
by shimnx

I reuploaded my example and you can run it. And the interface in the video is the example I uploaded.Thank you !