ext.js使用Ext设计器加载JSON数据gridpanel失败

时间:2011-06-01 07:21:38

标签: php json extjs

所以,由于我的高兴,使用EXT.js我正在使用GUI ext设计器开发各种数据门户。我通过PHP编码为JSON从服务器检索数据。我已经将网址放入GUI并按照我认为合适的方式设置了参数。我尝试了编辑首选项来更改URL。

我收到错误,任何帮助都会很棒。截图链接。 http://camdesigns.net/images/img.png

附带问题,什么是根参数?

这是我的商店:

MyStore = Ext.extend(Ext.data.JsonStore, {
    constructor: function(cfg) {
        cfg = cfg || {};
        MyStore.superclass.constructor.call(this, Ext.apply({
            storeId: 'MyStore',
            url: '/lids/return-data-json.php?investor=fifth-colony-capital',
            root: 'rows',
            successProperty: 'true',
            autoLoad: true,
            restful: true,
            fields: [
                {
                    name: 'total_investors',
                    mapping: 'total_investors'
                },
                {
                    name: 'total_insurerds',
                    mapping: 'total_insurerds'
                },
                {
                    name: 'total_policies',
                    mapping: 'total_policies'
                },
                {
                    name: 'fieldactive_policies',
                    mapping: 'active_policies'
                },
                {
                    name: 'maturity_count',
                    mapping: 'maturity_count'
                },
                {
                    name: 'average_age',
                    mapping: 'average_age',
                    allowBlank: false
                },
                {
                    name: 'average_life_expectancy',
                    mapping: 'average_life_expectancy'
                },
                {
                    name: 'minimum_life_expectancy',
                    mapping: 'minimum_life_expectancy',
                    allowBlank: false,
                    type: 'string'
                }
            ]
        }, cfg));
    }
});
new MyStore();

0 个答案:

没有答案
相关问题