Hello
I solved the issue

                                        record.set("item", 
productName.getText());
                                        record.set("price", price.getText());
                                        record.set("itemType", type.getText());

the three lines above were added instead of the createRecord line.
The first parameter of the set method being the name of the field as
defined in FieldDef

Neerou


On Oct 19, 4:01 pm, neerou <[email protected]> wrote:
> Using GWT-Ext
>
> 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 
"Google Web Toolkit" 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/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to