-
27 Mar 2011 11:44 PM #1
JsonStore with complex json structure in DataView
JsonStore with complex json structure in DataView
Hi,
How to declare the field of type array in JsonStore and in json data so that do not receive the error from DataView when an item is selected: " o.id is undefined " at ext-all-debug.js (line 10457). The current Json structure is a little complex:
and the store is declared like:Code:Ext.shortcuts.categoriesCatalog = [ { items: [ { text: 'item1', url: '.....', icon: 'item1.png' } ] }]
Is there any possibility to avoid the error ??Code:var store = Ext.create('Ext.data.JsonStore',{ idProperty : 'id', fields : ['id', 'items'], data : catalog });
Similar Threads
-
Complex JSON structure
By mask_hot in forum Ext 2.x: Help & DiscussionReplies: 10Last Post: 6 Dec 2008, 2:08 AM -
Populate a multi-tab form with a complex JSON structure
By jstockton in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 8 Oct 2008, 7:05 AM -
Handle a little complex structure of JSON
By shjy.nicholas in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 27 Jan 2008, 9:05 PM -
DataView JsonStore and complex data
By MichaelT in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 23 Jan 2008, 3:08 AM


Reply With Quote