# Fern url json Daten in Kombinationsfeld

**URL:** <https://forum.shopware.com/t/fern-url-json-daten-in-kombinationsfeld/19037>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [13. März 2014 um 11:20 UTC](https://forum.shopware.com/t/fern-url-json-daten-in-kombinationsfeld/19037 "2014-03-13T11:20:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![developer-007](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@developer-007](https://forum.shopware.com/u/developer-007)\
**Post date:** [13. März 2014 um 11:20 UTC](https://forum.shopware.com/t/fern-url-json-daten-in-kombinationsfeld/19037/1 "2014-03-13T11:20:36Z")

</div>

Hallo ich bin immer Fehler in meinem Code für Kombinationsfeld mit JSON-Daten. ` Ext.define('Shopware.apps.ProductField.view.detail.Window', { override: 'Shopware.apps.Article.view.detail.Window', createDescriptionFieldSet: function() { var me = this, fields = me.callParent(arguments); fields.add({ /\*\*\*\* Here i want to add combo box with json data from other domain url \*\*\*\*\*/ }); return fields; } }); ` Wie kann ich hinzufügen, dass Combo mit JSON-Daten mit anderen Domain-URL

---

<div class="post-metadata">

**Author:** ![creatoras](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@creatoras](https://forum.shopware.com/u/creatoras)\
**Post date:** [13. März 2014 um 15:31 UTC](https://forum.shopware.com/t/fern-url-json-daten-in-kombinationsfeld/19037/2 "2014-03-13T15:31:19Z")

</div>

Welchen Fehler bekommst du bei was? Im Normalfall würde ich sagen erstelle ein Model und ein Store.

---

<div class="post-metadata">

**Author:** ![developer-007](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@developer-007](https://forum.shopware.com/u/developer-007)\
**Post date:** [13. März 2014 um 15:42 UTC](https://forum.shopware.com/t/fern-url-json-daten-in-kombinationsfeld/19037/3 "2014-03-13T15:42:32Z")

</div>

[quote=“creatoras”]Welchen Fehler bekommst du bei was? Im Normalfall würde ich sagen erstelle ein Model und ein Store.[/quote] ` Ext.define('Shopware.apps.ProductField.view.detail.Window', { override: 'Shopware.apps.Article.view.detail.Window', createDescriptionFieldSet: function() { var me = this, fields = me.callParent(arguments); fields.add({ xtype: 'textfield', name: 'attribute[swagProductType]', fieldLabel: 'Product Type :', labelWidth: 155, margin: '0 0 15', cls: Ext.baseCSSPrefix + 'test-description-long', }); fields.add({ xtype: 'textfield', name: 'attribute[swagAdwordsLabel]', fieldLabel: 'Adwords Label :', labelWidth: 155, margin: '0 0 15', cls: Ext.baseCSSPrefix + 'test-description-long', }); fields.add({ xtype: 'textfield', name: 'attribute[swagAdwordsGrouping]', fieldLabel: 'Adwords Grouping :', labelWidth: 155, margin: '0 0 15', cls: Ext.baseCSSPrefix + 'test-description-long', }); fields.add({ xtype: 'textfield', name: 'attribute[swagAdwordsRedirect]', fieldLabel: 'Adwords Redirect :', labelWidth: 155, margin: '0 0 15', cls: Ext.baseCSSPrefix + 'test-description-long', }); var states = Ext.create('Ext.data.Store', { fields: ["ID","ValueCategory"] proxy: { type: "ajax" , autoload: true, api: { read: " $remoteurl" , } reader: { type: "json" , root: "sample" } } }); var simpleCombo = Ext.create('Ext.form.ComboBox', { fieldLabel: 'Google Product Category', store: states, queryMode: 'local', valueField: 'ValueCategory', tpl: Ext.create('Ext.XTemplate', '<tpl for="google">',
                    '<div class="x-boundlist-item">{ValueCategory}</div>',
                '</tpl>' ), displayTpl: Ext.create('Ext.XTemplate', '<tpl for="google">',
                    '{ValueCategory}',
                '</tpl>' ) }); fields.add(simpleCombo); return fields; } }); ` I am getting error in this code My json data format is {“sample”: [{“ID”:“0”,“ValueCategory”:“Animals & Pet Supplies”},{“ID”:“1”,“ValueCategory”:“Animals & Pet Supplies \> Live Animals”},{“ID”:“2”,“ValueCategory”:“Animals & Pet Supplies \> Pet Supplies”}]} can you help me ?

---

<div class="post-metadata">

**Author:** ![creatoras](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@creatoras](https://forum.shopware.com/u/creatoras)\
**Post date:** [13. März 2014 um 16:26 UTC](https://forum.shopware.com/t/fern-url-json-daten-in-kombinationsfeld/19037/4 "2014-03-13T16:26:06Z")

</div>

In dem Fall könnte vielleicht auch folgendes Tutorial passen: [http://wiki.shopware.de/Einsteiger-Schu … 2\_871.html](http://wiki.shopware.de/Einsteiger-Schuhgroessen-Erweiterung%5C_detail%5C_1052%5C_871.html)

---

<div class="post-metadata">

**Author:** ![creatoras](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@creatoras](https://forum.shopware.com/u/creatoras)\
**Post date:** [13. März 2014 um 16:37 UTC](https://forum.shopware.com/t/fern-url-json-daten-in-kombinationsfeld/19037/5 "2014-03-13T16:37:41Z")

</div>

Und hier gibt es ein Beispiel für ein eigenen Store + Model. Deine URL kommt in proxy: api: read: [http://wiki.shopware.de/\_detail\_1071.ht … mentierung](http://wiki.shopware.de/%5C_detail%5C_1071.html#ExtJS-Implementierung)
