I am trying to create an application which lists a series of items and
update of a row is possible.  I am using MemoryProxy and store to
handle the data.

I would like to know how to commit the updated record to the store n
refresh the grid. below are the code snippets:

-----------------------------------------------------------------------------
public void onClick(Button button, EventObject e) {
                                        // get the record to be
updated
                                        Record record =
recordDef.createRecord(new Object[]
{productName.getText(), price.getText(),type.getText(), "x"});
                                        record.commit();
                                        store.commitChanges();
                                        window.close();

                                }
****************************************************************

The scenario is the user click on a row, a window appears to edit the
fields. When update is done then the user clicks on Update button from
the window to commit the updates. The Window gets closed.  I wrote the
codes above to update the changes to the store, but the grid shows the
previous values always
Can anyone help me on that plz.

--~--~---------~--~----~------------~-------~--~----~
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