hi

 thanks for the response Anton,

i have got the solution from this forum. This is the code for updating
modified grid data.

Record[] records = gridPanel.getStore().getModifiedRecords();
String[] fields = gridPanel.getStore().getFields();

ArrayList<Map<String, String>> modifiedRecords = new
ArrayList<Map<String,String>>();
                for(int i = 0; i < records.length; i++) {
                        Map<String, String> parameters = new HashMap<String, 
String>();
                        for(int j = 0; j < fields.length; j++){
                                parameters.put(fields[j], 
records[i].getAsString(fields[j]));
                        }
                        modifiedRecords.add(parameters);
                }

if we pass the ArrayList<Map<String, String>> object modifiedRecords,
there we got the modified records in server side. there we can update
in database..

Thanks and Regards,
K. Venkat Kumar


On Sep 11, 1:31 pm, Anton Trapp <[email protected]>
wrote:
> Hi!
>
> 1) I don't know of a standarized / easy way of doing that
> (automatically), but you can manually by listening on changes.
> 2) Have a look a the grid listener adapter -> onchange -> trigger an RPC
> call back (store the data on the server) or better save all changes on
> the client when onchange occures and when the user presses your update
> button, use them.
> 3) If you don't let the user choose which rows he can see you can column
> in the grid and hide it.
>
> Regards, Anton
>
> kilaru schrieb:
>
>
>
> > Hi
>
> > I have an Editable Grid.Grid is perfectly loading the data from
> > database . I am able to Edit the grid successfully . What i need is,i
> > want to save the changes that i made in the Editable grid back to
> > database. I have a update button where i can call RPC call when user
> > clicks on it.
>
> > 1.How it is possible to update back to database .
> > 2.How we will recognize the changes that we made(For eg, If we change
> > only a single cell in a row)?
> > 4. How to remember primary key ids.
> > 3.Please give me any sample codes or links for reference .
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to