Results 1 to 5 of 5

Thread: Pass parameter to dataview Store

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    56
    Vote Rating
    2
      0  

    Default Pass parameter to dataview Store

    Hi ,
    because the store of the dataview is embedded,
    is it possible to pass a parameter when loading the store?
    The only solution i came with is listening to the onload
    event and make a call to the load function of the store itself.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    You can add extraParams to the proxy, use store.load and pass in the params, listen to the beforeload event on the store and add params
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    56
    Vote Rating
    2
      0  

    Default

    But this way i will call the server two times am i wrong?

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    Which way? I specified 3 ways.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  5. #5
    Sencha User
    Join Date
    Oct 2011
    Posts
    56
    Vote Rating
    2
      0  

    Default

    Ops pardon, i will go for one of them and let you know
    thank you very much

Tags for this Thread

Posting Permissions

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