Results 1 to 2 of 2

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

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    85
    Answers
    6
    Vote Rating
    2
      0  

    Default 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
    6,154
    Answers
    501
    Vote Rating
    249
      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 human resources manager: fabienne.bell@sencha.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •