开发者

Ext Js How to Pass Params to Server Code

开发者 https://www.devze.com 2023-02-27 08:57 出处:网络
I\'ve got two Ext GridPanels and want to pass an OrderID value from my Orders store to my PHP server codeAs I look through the docs, I see params, baseparams and beforeload listeners as possible ways

I've got two Ext GridPanels and want to pass an OrderID value from my Orders store to my PHP server code As I look through the docs, I see params, baseparams and beforeload listeners as possible ways to achieve this. The code below seemed straight forward but my param doesn't seem to get passed.


    OrdersGrid.on('rowclick', function(grid, rowIndex, e) {
    var selectedRecord = this.getSelectio开发者_StackOverflow社区nModel().getSelected();
    var val = selectedRecord.get('OrderID');
    ItemsDataStore.load( {params : {OrderID: val }});
    });

Any ideas on how to debug this appreciated. Thanks.


Set the baseParams on the store:

ItemsDataStore.baseParams.OrderID = val;
ItemsDataStore.load();
0

精彩评论

暂无评论...
验证码 换一张
取 消