Results 1 to 2 of 2

Thread: Create new Model

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Vote Rating

    Default Create new Model

    Hi all,

    i created a Model and bind it to a form. After I load a new Record (Direct PHP Backend) every fields are filled with the data from Backend.
    Now I create a new Model and call "updateRecord()". Now the Create method of the backend is called and the Data will be stored in Database. I return an Object containing the saved Data and the new ID, generated by the Backend-Database. This value has been set in the Model but the Form won't be updated. Should I reload the Data in the Form by calling loadRecord or is there any other method for Refreshing the Form <-> Model Binding?

    Best Regards

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    There is no actual vinding from a model to a form. If the model was updated with some data, you have to update the form.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:

Posting Permissions

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