View Full Version : How to modify data using JsonWriter without changing gridcells at beforewrite?

siebe vos
6 Sep 2010, 1:25 AM
Hello support-team,

Do you know a way to modify field data before writing it to the backend using the standard JsonWriter attached to a JsonStore (CRUD) without resulting the grid displaying the modified data? We need to modify some data fields because of a UTF-8 to UTF16 encoding (hex valued string) before sending it back to the backend system (IBMi). I tried to do this within the beforewrite event of the JsonStore and this works for the backend but the grid (showing the data) is also modified with the same values and this is not what we want.

Thanks in advance!

6 Sep 2010, 1:28 AM
You will need to write your own render(params, baseParams, data) method for the writer.