View Full Version : JsonStore, store field with type of an array?

28 Nov 2009, 8:02 PM
Is it possible for JSON store to store an object, whose one of the attribute is an array?
For example, I want to retrieve a list of training. Each training has many schedules, each is of type date.

For example:
var store = new Ext.data.JsonStore({
url: '/training/find',
root: 'records',
idProperty: 'id',
fields: ['id', 'course', {name: 'schedules', type: 'array'}]

28 Nov 2009, 8:28 PM
Nevermind. I just found this (https://www.extjs.com/forum/showthread.php?t=48791).
I should have search the forum before posting new thread.