Announcement

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

    ListGrid inline edit - send all values

    This is my application environment :
    1) Java 1.5, Smart GWT 2.1, GWT 2.0.3
    2) All data sources are JSON RestDataSources.

    I have an issue when using inline editing in ListGrids. It sends only the modified values of the record to the server through data source. How do we send all the values (modified + previous) to the server?

    #2
    See DataSource.transformRequest(), this use case is specifically discussed.

    Comment


      #3
      From where I could find the help ?
      When we save data using DynamicFrom , it sends the total record values but not with ListGrid inline editing.

      Comment


        #4
        How do you mean "the help"? We meant that it's in the JavaDoc.

        You receive both dsRequest.oldValues and dsRequest.values in transformRequest. You can combine them there, or leave the separate and combine them server-side.

        Comment


          #5
          Thanks very much,
          I can resolve the issue by overriding transformRequest() in RestDataSource . There dsRequest.getOldValues() and dsRequest.getData() methods used to send the all values.

          Comment

          Working...
          X