ExtJS DirectStore设置param值

时间:2012-06-11 18:58:14

标签: extjs

在EXTJS直接商店中,我想设置参数值然后重新加载它。怎么做?

var myStore = new Ext.data.DirectStore({
            directFn: Report.ReadReport,
            autoLoad: false,
            paramsAsHash: false,
            paramOrder: 'identifier',
            root: 'Report',
            totalProperty: 'total',
            fields: [
                { name: 'name', type: 'string' }
                ],
            remoteSort: true,
            listeners: {
                load: function (store, recs, opt) {
                    myGrid.setHeight(400);
                    myGrid.doLayout();
                }
            }
        });

我想要的就像这样

myStore.param.'identifier'.value = '12345'
myStore.load();

怎么做?有可能吗?

由于

1 个答案:

答案 0 :(得分:1)

myStore.load({
    params: {
        identifier: 12345
    }
});