# ExtJS ComboBox mit ManyToMany erzeugen

**URL:** https://forum.shopware.com/t/extjs-combobox-mit-manytomany-erzeugen/52813
**Category:** Programmierung
**Created:** [9. Mai 2018 um 10:07 UTC](https://forum.shopware.com/t/extjs-combobox-mit-manytomany-erzeugen/52813 "2018-05-09T10:07:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![langnickel](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@langnickel](https://forum.shopware.com/u/langnickel)
#### Post date: [9. Mai 2018 um 10:07 UTC](https://forum.shopware.com/t/extjs-combobox-mit-manytomany-erzeugen/52813/1 "2018-05-09T10:07:16Z")

</div>

Ich erzeuge in einem Backend-Modul per Button-Click ein neues Fenster:&nbsp;Ext.create(‚Ext.window.Window‘ …

Nun möchte ich bei den Items eine Combo-Box haben, die mir die aktuellen Steuersätze des aktuellen Shops anzeigt, so dass man eine davon auswählen kann.

Ich habe nirgends Beispiele gefunden, nur Beispiele über Models und Association, die ich aber nicht habe, da es nur ein kleines Dialog-Fenster.

---

<div class="post-metadata">

### Author: ![langnickel](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@langnickel](https://forum.shopware.com/u/langnickel)
#### Post date: [9. Mai 2018 um 10:22 UTC](https://forum.shopware.com/t/extjs-combobox-mit-manytomany-erzeugen/52813/2 "2018-05-09T10:22:07Z")

</div>

Ok, so scheint es zu funktionieren

```
            {
                xtype: 'combobox',
                name: 'cn_tax_id',
                fieldLabel: 'Tax',
                allowBlank: false,
                editable: true,
                
                displayField: 'name',
                valueField: 'id',
                store: Ext.create('Shopware.apps.Base.store.Tax', { 
                    proxy: {
                    type:'ajax',                    
                    url:'{url controller="base" action="getTaxes"}',                    
                    reader:{
                        type:'json',
                        root:'data',
                        totalProperty:'total'
                    }
                }}).load(),
            }

```

&nbsp;
