1. #1
    Sencha User
    Join Date
    Oct 2011
    Location
    Germany
    Posts
    146
    Vote Rating
    10
    Möhre will become famous soon enough

      0  

    Default how to make a private store for each user(group)

    how to make a private store for each user(group)


    If we use syncstorage with the following model each app-user (our costomers) will have the same products.

    If we want to have a private productlist for each app-user we could simply generate a new proxy-id for each user.

    Is there a better way to do this?

    How does Ext.io.user.getStore and findStores work? How to associate a store with a user?
    http://docs.sencha.com/io/1-0/#!/api/Ext.io.User

    PHP Code:
            Ext.define("products", {
                
    extend"Ext.data.Model",
                
    fields: [
                    {
    name'id'type'int'},                     
                ..
                ],
                
    proxy: {
                    
    type'syncstorage',
                    
    key:  'yoursenchaidname'
                    
    id'productsstore' 
              


  2. #2
    Sencha User
    Join Date
    Apr 2010
    Posts
    107
    Vote Rating
    -1
    merrells is an unknown quantity at this point

      0  

    Default


    Hello,

    Yes, the best way to have a per user database is to include a user identifier in the name of the store.

    John

Thread Participants: 1