Results 1 to 2 of 2

Thread: How to pass extra params to the store using the storeId

  1. #1

    Default How to pass extra params to the store using the storeId

    I want to access a param inside a store created. below is my store:


    HTML Code:
    Q.define('test.DataStore', Ext.data.ArrayStore, function($supr){        
    return {            constructor: function(cfg) {               
     $supr().constructor.call(this, {                    
    storeId: 'DataRule',                    
    data :[                           
    ['SEARCH', 'Search')],
     ['SEARCH2', 'Search2')],
      ['SEARCH3', 'Search3')],                    
    ]                
    });            
    }        
    };    }
    );
    and here is how im accessing the store from:
    HTML Code:
    items : this.section({
         items : [{                                                              
    store: 'DataRule'  //using the store id defined in the store above                           },                           {                              xtype : 'box',                             
    width : 10,         
     }]
    }]
    I want some params to be passed to the store, i.e [{id:'1'},{id: '2'}]. How can I pass params to be able to access inside the store?

    Thanks!

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Sorry, I'm not sure I understand. Are you looking to filter store records?
    http://docs.sencha.com/extjs/4.2.6/#...-method-filter

Similar Threads

  1. Replies: 4
    Last Post: 15 Nov 2013, 4:01 PM
  2. Setting Extra Params in Store Proxy (PR4)
    By amaccann in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 1 Feb 2012, 6:30 AM
  3. Store / Load / Pass params
    By Bucs in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 5 Mar 2011, 1:04 PM
  4. Why my store can not pass params ?
    By daniel_82 in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 9 Feb 2010, 2:05 PM
  5. Observable fix to pass options/extra params to listener
    By tony.summerville in forum Community Discussion
    Replies: 1
    Last Post: 12 Sep 2007, 7:13 AM

Posting Permissions

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