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”