[Gelöst] ext.js backend -> CategorySelection

Hallo Forum, Jetzt habe ich mal eine Frage zu Ext.Js. Ich bin da noch ziemlich am Anfang. Grob habe ich mich am Favoriten-Plug-In-Beispiel (http://community.shopware.com/Fortgesch … 4_871.html) von Shopware orientiert. Funktioniert soweit auch alles ganz gut. Nur will ich nicht Artikel laden, sondern Kategorien. In [PluginName]/Views/backend/[plugin_name]/view/list/articles.js (heißt bei mir natürlich auch dementsprechend categories.js) aus dem Favoriten-Beispiel habe ich deshalb statt der Funktion createArticleSearch die Funktion createCategorySelection: function() { var me = this; me.categorySelection = Ext.create('Shopware.apps.SteinsoftwareDiscount.view.fields.CategorySelection', { name: 'number', fieldLabel: '{s name=articles/add\_article\_field}Add product{/s}', returnValue: 'name', labelWidth: 150, hiddenReturnValue: 'number', width: 400, valueField: 'id', categoryStore: Ext.create('Shopware.apps.Base.store.Category'), listeners: { //we have to enable the add buton after the user select an category record. //valueselect: function(field, name, number, record) { select: function(field, name, number, record) { //me.fireEvent('addCategory', me, record); me.fireEvent('addCategory', this.valueField, record); } } }); return me.categorySelection; }, und unter [PluginName]/Views/backend/[plugin_name]/view/fields habe ich dann eben eine Kopie von /templates/_default/backend/emotion/view/components/fields/category_selection.js - leicht(!