|
actionComplete: function (args) {
if (args.requestType === "save") {
for (var i = 0; i < args.modifiedTaskData.length; i++) {
var id = args.modifiedTaskData[i].TaskId;
var start = args.modifiedTaskData[i].StartDate;
var end = args.modifiedTaskData[i].EndDate;
var predecessors = args.modifiedTaskData[i].Predecessor;
//save changes to the database
sendData(id, start, end, predecessors);
}
}
} |
Hello,
If there are two task Task A and Task B
task A is connected with Task B
now I am changing value of Task A It should be option to get updated predecessot with offset for Task B.
How to save my data of Task B when I changes Task A Date?
In your example in actionCompleted Modified records contain only seelcted task A records
Hi Ankur,
Upon reviewing your inquiry, we have attached video where the duration of task 1 was edited. In the "actionComplete" event, you will find two records inside the modifiedRecords. This scenario occurs specifically when changes made to task 1 affect task 2, such as alterations to its duration or end date In this way you can get the second record value. In order for us to proceed with further validation, kindly provide us with the following information:
Sample Link : https://stackblitz.com/edit/mt28s8?file=index.ts,data-source.ts
Regards,
Udhayakumar