Hi,
I am editing some values in the cells of a list grid. Now, on click of a button I need to get the old values which were present in those cells and should pass to my Java class.
I am using the dsRequest.getOldValues() for the same.
But it fetches me only the edited values instead of the old values which were persent in the list grid.
Please let me know how I can get the old values?
Thanks,
Vini.
In my earlier post, I am calling the updateData() method, on listgrid.
In another screen, I am calling saveAllEdits() on click of a button. That time, I am getting new values and old values properly in my Servlet class.
If I call updateData() method on click of a button, it’s not working.
Please let me know the solution.
Thanks,
Vini.
Hi Vini,
The dsRequest.oldValues are populated automatically by the grid and form when you save via grid.saveEdits(), form.saveData(), etc. When you call updateData directly, if you want oldValues to be available in your servlet, pass them via the requestProperties argument of dataSource.updateData.
Is there a way to get the old values of the edited records in the client side to pass it via requestProperties or should I take all the values in the cells into variables before editing and pass those variables via requestProperties.
Thanks,
Vini.