1. #1
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Default Store with Data Model

    Store with Data Model


    So I created a Data Model with a REST Proxy and JSON Reader.
    Very cool.

    Now trying to create a store with that model, does not work.
    What I want is something like this....
    Code:
    Ext.define('User', {     extend: 'Ext.data.Model',     fields: ['id', 'name', 'age', 'gender'],     proxy: {         type: 'rest',         url : 'data/users',         reader: {             type: 'json',             root: 'users'         }     } });  // Uses the User Model's Proxy Ext.create('Ext.data.Store', {     model: 'User' });
    The only option I have found is creating a "Store" but that defaults to having an AJAX proxy.
    Would it be possible to link the Model to the store rather than the Proxy.
    It would be awesome to link so that the model could be used on multiple stores.

    Are there plans to do something like this?

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,188
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Yes, Stores are now linkable to Models.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

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..." hd porno faketaxi