30 Nov 2012 4:23 AM #1
Create new Model
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?
3 Dec 2012 4:53 AM #2
- 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 @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.