Results 1 to 4 of 4

Thread: Dynamic population of several combo boxes with different data. 1 request or multiple?

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

    Default Answered: Dynamic population of several combo boxes with different data. 1 request or multiple?

    Hi Guys

    I have several combo boxes that will be used to define criteria for how a report is filtered. Each combo box will hold different data such as dates, products etc that need to be loaded from the server.

    Is it possible to load these into 1 single store and request to the server? i.e. perhaps have an array of arrays, array 1 could be dates, while array 2 could be products.

    Or is it best to these with multiple stores and multi requests to the server? The only thing I'm concerned about here's, is large numbers of requests flooding the server.

    I know this is a newb question, but theres not exactly a lot of example showing how this could work.

    Thanks

  2. Hi kelv1n,

    Batching multiple requests into one is one of the major features of Ext Direct (http://www.sencha.com/products/extjs/extdirect).

    Another approach is to write a custom store and/or proxy to do this for you. Recent example here: http://www.sencha.com/forum/showthre...-another-store

    Searching these forums you'll find plenty of material covering pros and cons of both solutions. I like this thread: http://www.sencha.com/forum/showthre...-is-the-best-)

    Best Regards

  3. #2
    Sencha User
    Join Date
    Oct 2011
    Location
    Sweden
    Posts
    36
    Answers
    10
    Vote Rating
    0
      0  

    Default

    Hi kelv1n,

    Batching multiple requests into one is one of the major features of Ext Direct (http://www.sencha.com/products/extjs/extdirect).

    Another approach is to write a custom store and/or proxy to do this for you. Recent example here: http://www.sencha.com/forum/showthre...-another-store

    Searching these forums you'll find plenty of material covering pros and cons of both solutions. I like this thread: http://www.sencha.com/forum/showthre...-is-the-best-)

    Best Regards

  4. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    16
    Answers
    2
    Vote Rating
    1
      0  

    Default

    Brilliant, thanks JambaFun

    Note to Sencha, you need more tutorials on the basics!

  5. #4
    Sencha User
    Join Date
    Jun 2010
    Location
    Buenos Aires, Argentina
    Posts
    213
    Answers
    2
    Vote Rating
    10
      0  

    Default

    I'm doing this by only one request (direct). You can fill the stores manually. Store.loadData.

Posting Permissions

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