I have folowing json data:
entity:{name:'aName', title:'aTitle', cusomFields:[{type:'aType', name:'aName'},...{type:'aType', name:'aName'}]}
Question: How to write JsonReader correctly, especially property 'fields', for FormPanel?
I want to populate this fields to FormPanel. In my app json reader loads data form server to form panel and all fields are showed on form except this dynamic fields. The problem is that I don't know how many elements in collection, only its type. So I dynamicly create TextField for form panel:
var compTextName = new Ext.form.TextField({
fieldLabel: 'Custom Field Name', ASP.NET 3.5 and Visual Studio 2008:: NET Framework 3.5, including the new HashSet collection, DateTime offset as a CSS properties pane which clarifies the sometimes-complex hierarchy of http://www.livehosting.ro/readnews.aspx?NewsID=27HOME | two dimensional array output,two dimensional array output Tutorial :: Array is the collection of same data type. Consider that if have created a variable of type int then, the array of int can only store the int values http://www.roseindia.net/tutorialsearch/?t=two dimensional array outputHOME |
name: 'customFields['+currentIndex+'].name',
});
When I post such form all information submits correctly but loading doesn't work, because I don't know how to describe such fields in JsonReder. I tried like this, but it doesn't work:
var hpReader = new Ext.data.JsonReader({
fields: ['id','name','type','customFields']
..........................
What do you want the fields of your store to be?
Where's The Advantage In Windows Genuine Advantage?
Stocks Bounce After S&P Joins Bear Market |