# Add one combo box with json data in article

**URL:** <https://forum.shopware.com/t/add-one-combo-box-with-json-data-in-article/19045>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [13. März 2014 um 14:10 UTC](https://forum.shopware.com/t/add-one-combo-box-with-json-data-in-article/19045 "2014-03-13T14:10:59Z")\
**Posts on this page:** 1\
**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 14:10 UTC](https://forum.shopware.com/t/add-one-combo-box-with-json-data-in-article/19045/1 "2014-03-13T14:10:59Z")

</div>

how to fetch json data from other domain url and place data in combo box. I have tried many codes but I can’t get proper way. ` 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', }); // I just want to add one combo box with json data fields.add({ xtype: 'combo', name: 'attribute[swagNewProductCategory]', fieldLabel: 'Google Product Category :', labelWidth: 155, margin: '0 0 15', cls: Ext.baseCSSPrefix + 'test-description-long', }); return fields; } }); //{/block} ` My json code 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”}]} this data is come from my another website page like “[http://www.example.com/json.php](http://www.example.com/json.php)”
