Hi,
In Task Model, we have start date, end date, duration, baselines fields by default, i have added 2 more fields planned start date, planned end date.
What i want to do is, once start, end or duration field is chanced, i want to copy over default fields to other fields and update baselines in front end and after that update event should be fired and it will sync the changes to salesforce backend.
Which event i can use to make these changes so that baseline is visible with latest changes and modified data is sent to backend as i tried these changes in update event but its gives max stack size reached error?
taskRecord.plannedStartDate = taskRecord.startDate,
taskRecord.plannedCompletionDate = taskRecord.endDate,
taskRecord.baselines.getAt(0).startDate = formatDate(taskRecord.plannedStartDate);
taskRecord.baselines.getAt(0).endDate = formatDate(taskRecord.plannedCompletionDate);
[/code]