Hi guys…
I have an list/markets.js file which is extending Shopware.grid.Panel and in the „configure“ function I have set returning parameter hasOwnController to true, and named the controller in the „controller“ parameter.
Now, I have controller/listmarkets.js which is extending Ext.app.Controller, and the problem is that, file is always loaded, but the launch function is not fired so the rest of the class is not loaded too.
I have tried everything but I couldnt find an error to fix.
Here are the screenshots:
Hi,
the Shopware.grid.Panel has no possibilities to set a „controller“ here. If you set the property hasOwnController to true, you only need to implement a new controller, which is listining to the events of the Shopware.grid.Panel. If you want to use custom events, you don’t even have to set this value to true. You can find more information about that in the code documentation: Shopware.grid.Panel.displayConfig.hasOwnController
shopware/Shopware.grid.Panel.js at 5.2 · shopware/shopware · GitHub
Viele Grüße aus Schöppingen
Michael Telgmann
1 „Gefällt mir“
Hi [@Michael Telgmann](http://forum.shopware.com/profile/17553/Michael Telgmann „Michael Telgmann“)
So, you are saying that I can directly write functions in list/markets.js which are listening the controller?
Also, if I set hasOwnController to false, extjs error came up „Uncaught TypeError: Cannot read property ‚control‘ of undefined“.