Question

I'm trying to use MVC structure while building a sencha touch 2.3.1 app. I have a form, and two buttons one for submission and other for resetting it. I have added form view code in file app/view/form1.js, controller code to app.controller.form1 and here's my app.js.

Can someone point out where I am wrong, and to a source where I can get a better understanding of how to use (I know what MVC is) MVC structure in Sencha. There documentation is a bit to simplified to include all this.

Thanks in advance.

Was it helpful?

Solution

Your Problem is the getting of the form:

form1.reset();

You can get it with the auto generated getter method in the controller:

var form1 = this.getForm1();

And remove your double colon "::"

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top