1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    Betelgeuse VII
    Posts
    86
    Answers
    3
    Vote Rating
    3
    fordprefect is on a distinguished road

      0  

    Default Answered: Model - field with a list of integers

    Answered: Model - field with a list of integers


    Hi,

    I have a model that looks like this:

    Code:
    Ext.define('Canvas.model.CanvasObjectModel', {
        extend: 'Ext.data.Model',
    
        idProperty: 'CanvasId',
    
        fields: [{
            name: 'CanvasId',
            type: 'int'
        },
        {
            name: 'CanvasObjectId',
            type: 'int'
        }
    });
    Basically I need to hold more than one 'CanvasObjectId', but don't see a type to hold a list. Is there a way where I can have many ObjectId's in this model?

    Thanks

  2. I am not sure if it is the recommended way, but I imagine you want to use a nested structure (relational data). Apparently it doesn't work well natively with grids (as might be expected). See the example in the Reader class.

    http://docs.sencha.com/ext-js/4-1/#!....reader.Reader

  3. #2
    Sencha User
    Join Date
    Jun 2012
    Posts
    5
    Answers
    3
    Vote Rating
    1
    mattea is on a distinguished road

      1  

    Default


    I am not sure if it is the recommended way, but I imagine you want to use a nested structure (relational data). Apparently it doesn't work well natively with grids (as might be expected). See the example in the Reader class.

    http://docs.sencha.com/ext-js/4-1/#!....reader.Reader

  4. #3
    Sencha User
    Join Date
    Mar 2011
    Location
    Betelgeuse VII
    Posts
    86
    Answers
    3
    Vote Rating
    3
    fordprefect is on a distinguished road

      0  

    Default


    Thanks

Thread Participants: 1

Tags for this Thread

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..."