# extjs Doku &amp; Form Buttons &amp; Fileupload

**URL:** <https://forum.shopware.com/t/extjs-doku-amp-form-buttons-amp-fileupload/6938>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [24. April 2012 um 18:24 UTC](https://forum.shopware.com/t/extjs-doku-amp-form-buttons-amp-fileupload/6938 "2012-04-24T18:24:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bora](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@bora](https://forum.shopware.com/u/bora)\
**Post date:** [24. April 2012 um 18:24 UTC](https://forum.shopware.com/t/extjs-doku-amp-form-buttons-amp-fileupload/6938/1 "2012-04-24T18:24:31Z")

</div>

[http://wiki.shopware.de/\_detail\_608.html](http://wiki.shopware.de/%5C_detail%5C_608.html) Was muss ich tun, damit ich mir die Doku ansehen kann? gibt es da einen Trick? ist ja hier verlinkt: [http://wiki.shopware.de/Tutorials-zur-P … l\_522.html](http://wiki.shopware.de/Tutorials-zur-Programmierung-3.5.0%5C_detail%5C_522.html) Problem 1: es werden keine Speichern-Buttons der FormPanel angezeigt. Stattdessen wird eine ca 50Px hohe Fläche angezeigt. Entferne ich den this.buttons Teil, verschwindet auch die Fläche. Problem 2: den Fileupload verstehe ich auch nicht ganz. Wieso gibt es da einen extra Button? Wird der Upload nicht mit dem absenden des Formulars gestartet? Ich denke dafür würde ich selber Lösungen finden, wenn ich mich irgendwo einlesen könnte! Doku BITTE 🙂 wir haben auch die Enterprise Lizenz :money: Danke & Grüße, Alex `Shopware.Filialen.DetailForm = Ext.extend(Ext.FormPanel, { labelWidth: 75, frame: true, defaultType: 'textfield', fileUpload: true, layout: 'form', initComponent: function() { if( typeof this.filialen == 'object' ) { var items = []; $.each( this.filialen, function(i, filiale){ items.push( new Ext.form.FieldSet({ title: 'Banner zu Slider zusammenfassen', width: 650, style: { marginTop: '0px',marginLeft:'0px'}, frame: false, items: [{ xtype: 'fileuploadfield', emptyText: 'Bitte wählen...', fieldLabel: 'Datei', allowBlank: true, name: 'file', buttonText: '' }] }) ); }); } this.items = items; this.buttons = [{ text: 'Speichern', handler: function(){ this.getForm().submit({ url: '{url module=backend controller=Filialen action=saveFilialen}'}); }, scope:this }]; Shopware.Filialen.DetailForm.superclass.initComponent.call(this); this.url = '{url module=backend controller=Filialen action=saveFilialen}'; } }); (function(){ View = Ext.extend(Ext.Viewport, { layout: 'absolute', initComponent: function() { // subshop reiter laden var reiter = []; this.shops = {$filialen}; $.each( this.shops, function(shopID, shop){ var forms = []; forms.push( new Shopware.Filialen.DetailForm({ title: "neue Filiale", action: "insert", filialen: [{ name: '', shopID: null, pickup: 0 }] }) ); if( typeof shop.filialen == 'object' ) { forms.push( new Shopware.Filialen.DetailForm({ title: "Filialen bearbeiten", action: "update", filialen: shop.filialen }) ); } reiter.push({ title: shop.name, items: [forms] }); }); this.tabs = new Ext.TabPanel({ region: 'center', activeTab: 0, bodyBorder: true, border: true, plain: true, hideBorders:false, defaults:{ autoScroll: true}, items: reiter }); this.items = [this.tabs]; View.superclass.initComponent.call(this); } }); Shopware.Filialen.View = View; })();; Ext.onReady(function(){ Filialen = new Shopware.Filialen.View; }); `

---

<div class="post-metadata">

**Author:** ![bora](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@bora](https://forum.shopware.com/u/bora)\
**Post date:** [25. April 2012 um 11:23 UTC](https://forum.shopware.com/t/extjs-doku-amp-form-buttons-amp-fileupload/6938/2 "2012-04-25T11:23:21Z")

</div>

yay, die Doku ist wieder da :thumbup: Danke! 💏
