Hi Experts,
There is a requirement to create a new Row when user clicks on the ‘Restart’ button as below. I tried to achieve this using the below Client script code.
CurrentScheduleType, currentScheduleRule, currentTaskTemplateId, startDate and productID values were taken from different logics and they were working fine.
But I am currently facing an issue with the product_pm_id. My assumption was this field should populate (as a next sequence) when executing the addRowToFormDataList function. But as you can see, it is not populating any field value for product_pm_id.
var newRow = {
product_pm_id: '',
pm_schedule_type: currentScheduleType,
pm_schedule_rule: currentScheduleRule,
task_template_id: currentTaskTemplateID,
coverage_start_dt: startDate,
product_id: productID
};
addRowToFormDataList(dataList, newRow, true);
Any suggestions are highly appreciated.
Thanks,
Hasara