1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    18
    Vote Rating
    0
    lobosan is on a distinguished road

      0  

    Default Unanswered: Get subset of store

    Unanswered: Get subset of store


    Hi everyone,

    How can i use the same json store in many combos of a form, for example

    Code:
    {"success":true,
    "data":[
      {"id":1,"description":"object1", "group":"group1"},
      {"id":2,"description":"object2", "group":"group1"},
      {"id":4,"description":"object3", "group":"group2"},
      {"id":5,"description":"object4", "group":"group2"},
      {"id":6,"description":"object5", "group":"group3"},
      {"id":7,"description":"object6", "group":"group3"}
    ]}
    So in my form i want to have 3 combos, each of them with different registers, depending on the group field, but based on the same store

    Thanks in advance for any help

  2. #2
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,669
    Answers
    130
    Vote Rating
    110
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


    3 combos with one store share the filters, so it is not a good idea if they are editable.
    Code:
    triggerAction: 'all'
    does help a bit.

    i recommend to use 3 stores, load one via ajax and fill the other two locally with content on the load event of the first store. you can use Ext.define() to create a store class and instanciate it 3 times.
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Posts
    18
    Vote Rating
    0
    lobosan is on a distinguished road

      0  

    Default


    Quote Originally Posted by tobiu View Post
    3 combos with one store share the filters, so it is not a good idea if they are editable.
    Code:
    triggerAction: 'all'
    does help a bit.

    i recommend to use 3 stores, load one via ajax and fill the other two locally with content on the load event of the first store. you can use Ext.define() to create a store class and instanciate it 3 times.
    Hi Tobias, thanks for answer

    I'm actually calling independent stores, but the problem is that i'm doing 20 queries to the server, and the time to load the form is too much, so i was thinking to call just one store and filter it by group in the client, and show a subset for each combobox.

    If you have other approach i really appreciate it

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."