1. #1
    Sencha Premium Member
    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 Premium Member
    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