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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    You can have the global store listen for the load event or datachanged event on the local stores.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •