Results 1 to 2 of 2

Thread: 6.5 formpanel updateRecord()

  1. #1
    Sencha Premium User
    Join Date
    Nov 2016
    Posts
    17

    Default Answered: 6.5 formpanel updateRecord()

    Previously when I wanted to update a model with values from a formpanel I would call form.updateRecord( record ) and all the values would be set. I recently upgraded to 6.5 and haven't been able to get this to work.

    Now it appears to work backwards and set the values in the form.

    I looked at the code and the functions are completely different now. This appears to be the result of changing formpanel to inherit from fieldpanel. I have been unable to find any official documentation on this specific issue though.

    Are we no longer suppose to use updateRecord() for setting values in the record? Should we use record.set( form.getValues() ) instead?

  2. Seems we missed this in the upgrade guide. There was an existing method name conflict so we decided to fix it for 6.5.0

    The new method is fillRecord. I'll make a note to add this to the upgrade guide.

  3. #2
    Sencha Premium User
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258
    Answers
    759

    Default

    Seems we missed this in the upgrade guide. There was an existing method name conflict so we decided to fix it for 6.5.0

    The new method is fillRecord. I'll make a note to add this to the upgrade guide.

Similar Threads

  1. [CLOSED] FormPanel setRecord doesn't trigger updateRecord
    By sencha-noob in forum Sencha Touch 2.x: Bugs
    Replies: 3
    Last Post: 28 Jun 2012, 7:52 AM
  2. BasicForm - updateRecord
    By hpet in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 19 Mar 2012, 11:07 PM
  3. formpanel updateRecord - always sets model.dirty to true
    By martinc in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 1 Jul 2011, 1:16 AM
  4. Replies: 0
    Last Post: 11 Apr 2011, 10:41 AM
  5. BasicForm updateRecord
    By petard in forum Ext 1.x: Bugs
    Replies: 1
    Last Post: 23 Apr 2007, 7:09 AM

Tags for this Thread

Posting Permissions

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