Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problem with back-propagation of generated IDs upon ListGrid.saveAllEdits()

    When I set autoSaveEdtis on a ListGrid to true, new records get after auto-save the value of generated ("sequence") IDs back from the server. When however I set autoSaveEdits to false and save new records with saveAllEdits() from a ClickHandler, IDs to not propagate back to the client even though they are generated correctly and read back on the server. Am I missing something? My click handlers look like this:

    Code:
                IButton saveButton = new IButton("Save");
                saveButton.addClickHandler(new ClickHandler() {
                    public void onClick(ClickEvent event)
                    {
                        if (targetGrid.hasChanges()) {
                            SC.ask("Save Changes?", new BooleanCallback() {
                                public void execute(Boolean value)
                                {
                                    if (value != null && value) {
                                        targetGrid.saveAllEdits();
                                    }
                                }
                            });
                        }
                        else {
                            SC.warn("No Changes!");
                        }
                    }
                });

    #2
    See the FAQ on grids not updating, and follow all of the recommended troubleshooting steps. If you can't solve it, post the results of all troubleshooting steps.

    Comment

    Working...
    X