[Gelöst]Problem bei eigenentwicklung Jahresumatzrabattplugin

Grüße da ich keine andere Möglichkeit gefunden habe das Jahresumsatzproblem zu lösen, hab ich kurzerhand dann doch ein eigenes Plugin dafür geschrieben, bin dort aber auf ein für mich komischerweise unlösbares Problem gestoßen. Und zwar ich erstell auf einer Seite im Backend eine Config, nur komm ich nicht dahin das er diese Config beim Laden der Seite aufruft, bislang habe ich es nur mit einem Button lösen können. Daher frage ich nun hier ob man mir bitte dabei helfen kann? Hier der Code der besagten Config-Seite: RConfig = Ext.extend(Ext.FormPanel, { title: 'Rabatt Einstellungen', closable: false, defaults: { anchor: '100%' }, layout: 'form', labelWidth: 300, bodyStyle: 'padding:20px', autoScroll: true, loadForm: function(form){ form.load({ url : '?action=loadConfig', success: function ( result ) { result.responseText; } }); }, listeners: { 'render': function(form){ this.loadForm(form); } }, initComponent: function() { this.fieldsetBase = [{ xtype:'fieldset', title: 'Rabatte', autoHeight: true, defaults: { anchor: '100%' }, defaultType: 'textfield', items :[new Ext.form.Radio({ name: 'allproducts', checked: true, fieldLabel: 'Alle Produkte auswählen', inputValue: 1 }),new Ext.form.Radio({ name: 'allproducts', checked: false, fieldLabel: 'Bestimmte Produkte auswählen', inputValue: 2 }),{ fieldLabel: 'Anzeigetext ({%%RABATT%%} wird ersetzt, muss vorhanden sein!)', name: 'stext' },{ xtype: 'label', fieldLabel: '!Funktioniert noch nicht zu 100%, Änderungen werden übernommen, jedoch erst nach klick auf den Button angezeigt!' }] }]; this.items = [this.fieldsetBase]; this.buttons = [{ text: 'Config Aktuallisieren', handler: function(){ var form = this.getForm(); form.load({ url : '?action=loadConfig', success: function ( result ) { result.responseText; } }); }, scope: this },{ text: 'Speichern', handler: function(){ var form = this.getForm(); if(!form.isValid()) { return; } form.submit({ method: 'POST', url: '?action=updateConfig', success: function(result, request){ result = Ext.util.JSON.decode(result.responseText); } }); }, scope: this }]; RConfig.superclass.initComponent.call(this); } }); Shopware.Rabatt.RConfig = RConfig; Anhand des Button “Config Aktuallisieren” löse ich es derzeit, nur wäre es schöner wenn dies beim Seitenaufruf automatisch passiert. Mit freundlichen Grüßen Warkiller102 [Gelöst] Habe die Lösung gefunden und oben im Code mit eingefügt. Jedoch nochmal einzeln: loadForm: function(form){ form.load({ url : '?action=loadConfig', success: function ( result ) { result.responseText; } }); }, listeners: { 'render': function(form){ this.loadForm(form); } },