Results 1 to 2 of 2

Thread: writeAllFields: false. Returning data from server blanks out fields not updated.

  1. #1
    Sencha Premium User Tim Toady's Avatar
    Join Date
    Feb 2010
    Location
    Pennsylvania
    Posts
    579

    Default writeAllFields: false. Returning data from server blanks out fields not updated.

    I have a store with a writer. I am not writing all fields so it only sends the updates. After updating the fields in the database I may need to return them back to the client. If I return just the updated fields everything else gets set empty.

    Looking at the code, in reader.update it does an Ext.apply(rec.data, data) and "data" has all the fields as empty except the one I returned from the server. Is there an easy way to force that data object to have only what I updated so that it doesn't blank everything else out. Sure I could return the data from the server or send it all with writeAllFields.... but why should I have to???

    Edit:
    Is there something I am not understanding? Why should I requery the DB or writeAllFields: true only to send back data the client already knows? Only returning success: true updates them, but if any changes are made serverside I have to pull the whole record?

  2. #2
    Sencha User
    Join Date
    Aug 2010
    Posts
    5

    Default

    I'm having the same problem. The writeAllFields option seems sort of useless. Maybe I'm missing something too?

Similar Threads

  1. Pushing updated data to ext grid from server?
    By mlab in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 26 Oct 2010, 12:54 PM
  2. composite key and JsonWriter with writeAllFields: false
    By ilyas in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 12 Oct 2010, 5:35 AM
  3. Remove leading and trailing blanks in all fields by default
    By stephen.friedrich in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 14 Oct 2009, 6:35 AM
  4. How push data to server of updated store ?
    By lpastor in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 4 Sep 2009, 12:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •