Results 1 to 3 of 3

Thread: [CLOSED]Automatic form record update

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2007

    Default [CLOSED]Automatic form record update

    It is possible to assign a record to a form using:
    and later get the record from the form and update it:
    var record = form.getRecord();
    var values = form.getValues();
    I suggest three improvements to this API:

    1. autoUpdateRecord config option on the form that when set to true automatically updates the record and keep the record and the form in sync.
    2. autoSyncRecord/Store config option on the form that when set to true automatically saves the record (or sync the store) when submitting the form (if it is valid).
    3. Auto for fields from a model. Similar to how django let you create a form from a model automatically. You'll just need to define the record and the fields will be created for you. The user can override a model field explicitly in the form to get custom functionality.

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Sydney, Australia


    We have a ticket open internally to improve form/model binding.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Sencha User
    Join Date
    Mar 2007


    Great! It would also be awesome to be able to apply the model's validators to the form.

Similar Threads

  1. Replies: 1
    Last Post: 13 Mar 2011, 6:32 PM
  2. Replies: 5
    Last Post: 22 Apr 2010, 7:03 AM
  3. Replies: 4
    Last Post: 21 Jun 2008, 10:12 AM
  4. Replies: 3
    Last Post: 20 Jun 2008, 6:48 AM
  5. [2.1][CLOSED] Form Automatic Resize Shadow Issue
    By kouphax in forum Ext 2.x: Bugs
    Replies: 3
    Last Post: 2 May 2008, 4:42 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