Hiya I'm trying to fetch some results from a dynamic xtype combo by using JAVA, can I make an array using the Ext.Data.JsonStore and fetching the data with the Ext.data.HttpProxy ?
Something like:
(array.js)
Code:
var productsArray = new Ext.data.JsonStore({
	root	: 'productList',
	baseParams	: {
		column	: 'brand'
				  },
	fields		: [
			{
				name: 'id',
				mapping: 'id'
			},
			{
				name: 'manufacter',
				mapping: 'brand'
			}
		],
	proxy : new Ext.data.HttpProxy({
		url : '/myapp/RetrieveProductsServlet'
	})				
});
(windows.js)
Code:
MyContainerUi = Ext.extend(Ext.Container, {
    id: 'myForm',
    initComponent: function() {
        this.items = [
            {
                xtype: 'combo',
                forceSelection: true,
                displayField: 'manufacter',
                valueField: 'manufacter',
                hiddenName: 'brand',
                loadingText: 'LOADING...',
                minChars: 2,
                store: productsArray
            }
        ];
        MyContainerUi.superclass.initComponent.call(this);
    }
});