Add values to timesheet lines without committing the line
We have a script where we would like to fetch the project pricing from a custom record price list. So when a user is entering their time on the weekly timesheet page and selects a project in the sublist, the pricing should be fetched and update the rate column. The values does not display unless we also use commitLine. But we do not want to do that because it interrupts the user and they have to click their line again to finish up with a desciption, task and hours. But we still want them to be able to see the correct price when working on the line.
In the script we use setCurrentSublistValue to set the rate, and then commitLine to make the correct price appear. It works, but it annoys the user when they need to click the line they were working on again to complete it.
Is there any solution to make this work without having to commit the line first?