1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    85
    Answers
    6
    Vote Rating
    1
    ssamuel68 is on a distinguished road

      0  

    Default Unanswered: Passing extraParam to TreeStore and ExtDirect (Ext4.1.1)

    Unanswered: Passing extraParam to TreeStore and ExtDirect (Ext4.1.1)


    Hi,

    Its possible to pass and extra param on a tree store.

    I've been trying different ways but not succeed.

    Here is my code:

    Code:
    Ext.define('Test.store.Tree', {
        extend: 'Ext.data.TreeStore',
        model: 'Test.model.Tree',
        autoLoad: false,
        proxy: {
            type: 'direct',
            directFn: Test.getTree,
            paramOrder: ['node'],
            extraParams: {
                foo: 'bar'
            },
        },
        listeners: {
            beforeload: function(store) {
                store.proxy.extraParams.foo = 'bar';
            }
        }
    });
    But on my controller I can't get that foo param the only thing that I recieve is the id of the tree.

    Any suggestion?

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,462
    Answers
    440
    Vote Rating
    202
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    What if you include 'foo' in the paramOrder array?
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

Thread Participants: 1