1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    51
    Answers
    2
    Vote Rating
    0
    whiplash is on a distinguished road

      0  

    Question Answered: Some insights on how to work with data stores on two different Lists

    Answered: Some insights on how to work with data stores on two different Lists


    Hey Guys

    I have 2 data stores.

    One contains a group of IDs

    The other contains values specific to individual IDs

    I already have 'completed' the list of individual IDs in terms of functionality and styling etc.

    Now, I have been asked to filter them according to the groups which they are in.

    So, the only piece of connecting data is the ID stored in an array within the groups store.

    My question is:

    Should I somehow re-construct the original list I had created for the individual IDs within an Ext.List for the Groups store, inside the onItemDisclosure function?

    Or should I try to filter them somehow?

    help please lol - im a bit confused


    Thanks


    Whiplash

  2. Got it sorted using filterBy function

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,347
    Answers
    3542
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Stores can be grouped and list has a grouped config.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Sep 2011
    Posts
    51
    Answers
    2
    Vote Rating
    0
    whiplash is on a distinguished road

      0  

    Default


    cheers mitchell,

    hmm .. I'll have to get my thinking cap on

  5. #4
    Sencha User
    Join Date
    Sep 2011
    Posts
    51
    Answers
    2
    Vote Rating
    0
    whiplash is on a distinguished road

      0  

    Question


    I'm not having much luck with this one

    Is it possible to display data for one store but still giving access to another store within a List?

  6. #5
    Sencha User
    Join Date
    Sep 2011
    Posts
    51
    Answers
    2
    Vote Rating
    0
    whiplash is on a distinguished road

      0  

    Default


    Got it sorted using filterBy function

Thread Participants: 1