PDA

View Full Version : his.getJobStore is not a function - extjs



Anthony.Hall
17 Jan 2012, 7:00 AM
1) I have a store called "Job". Is correct that method "getJobStore" is automatically created.


2) in the following code example. I get this error. "this.getJobStore is not a function". When i go console.info(this) i do not see this function. So what property should be "this" ?





onSubmitBtnClick: function () {


var form = Ext.getCmp('formJobSummary');
var record = form.getRecord();
var values = form.getValues();
this.getJobStore().sync();



},

mitchellsimoens
17 Jan 2012, 8:59 AM
This is in a controller? 'this' shoudl be of the controller.