Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by raj on May 05, 2008 23:03
open dhtmlx forum
update data at server side using DataProcessor

Hi,

I am using DataProcessor to update the data at server side,
I am getting the data that I updated in grid when I submit the request,
Is there any way to maintain the previous values of the row?

Because I need to update the values in DB using previous values, I have no primary key in my table.

Please suggest me in this regard..........

/Thanks
Raj
Answer posted by Support on May 07, 2008 03:18
There is no way to preserve original values, but you can provide any additional data, which will be need later , inside userdata sections

<row id="some">
       <cell>a1</cell>
       <cell>a2</cell>
       <cell>a3</cell>
       <userdata name="origin">a1^a2^a3</userdata>
</row>


In such case the dataprocessor will send new values for cell, but it will also provide "origin" value from XML, which may contain any info, necessary to identify record in DB.