-
14 Jun 2012 8:34 AM #1
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:
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?Code:Ext.define('Canvas.model.CanvasObjectModel', { extend: 'Ext.data.Model', idProperty: 'CanvasId', fields: [{ name: 'CanvasId', type: 'int' }, { name: 'CanvasObjectId', type: 'int' } });
Thanks
-
Best Answer Posted by mattea
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
-
14 Jun 2012 8:47 AM #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
-
15 Jun 2012 7:25 AM #3


Reply With Quote