Results 1 to 2 of 2

Thread: Views on a global Store

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Germany, Dresden
    Posts
    35
    Answers
    3
    Vote Rating
    1
      0  

    Default Views on a global Store

    Hey,

    i need a global store which contains many posts (identified by an unique id from the server) and some stores which interact as a view (like in databases) on this global store.

    The problem is that the views are communicating with the server and do remoteFiltering there (own implementation, note remoteFilter of ST2).

    Now i have two solutions: Either I use many stores, iterate across all of them and manipulate all corresponding records or I provide many ST2 (local) filters and use one global store.

    The solution I want is having many stores, retrieving filtered Notes from the server but storing them in one global store. The (not global) stores should only reference to the posts which they should contain.

    Is their any possibility?

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    You can have the global store listen for the load event or datachanged event on the local stores.
    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

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
  •