Results 1 to 5 of 5

Thread: Pass parameter to dataview Store

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    57
    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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,062
    Vote Rating
    1390
      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
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

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

    Default

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

  4. #4
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,062
    Vote Rating
    1390
      0  

    Default

    Which way? I specified 3 ways.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  5. #5
    Sencha User
    Join Date
    Oct 2011
    Posts
    57
    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
  •