Load Store data from Controllers and Tab Panels [ List & Map ]
Hi,
I'm trying to load Data Store into a List and a Map.
In my controller I load the data via proxy in this way:
Code:
action_group: function (list, record)
{
var store = Ext.getStore("Units");
store.setProxy({
type: 'jsonp',
url: 'http://myurl.com/&var=' + record.data.name,
reader: {
type: 'json',
rootProperty: 'records.units'
}
});
store.load();
this.getHomeView().push({
xtype: 'group-main',
title: record.data.name,
data: record.data
});
}
Where the xtype: 'group-main' is my Ext.tab.Panel with just 2 items:
Code:
items: [
{
/* Ext.Container with a Ext.dataview.List */
}, {
/* Ext.Container with a Ext.Map */
}]
Now, the List (first tab) have no problems and loads the data from the store correctly, but the map instead have no record, and I can't find the way to get what's was loaded in the controller.
Please help :)
Thanks!