Gurus:
I have no idea why I cannot wrap my head around this....it seems so simple but I cannot, for the life of me, put it together. Please help
.
Code:
var cpsRecord = Ext.data.Record.create([
{name:'RECORDID'},
{name:'FIELD1'},
{name:'FIELD2'},
{name:'FIELD3'},
{name:'FIELD4'},
{name:'FIELD5'},
]);
var cpsReader = new Ext.data.JsonReader({
id :'RECORDID',
root :'RECORD'
},cpsRecord);
.......
I am using the above to load a form. Loads great, no issues with pulling the data over and populating the textfields.
RECORDID does not need to be populated on the form BUT I need to retrieve the value for it to do some processing. Can someone please give me a nudge. Thanks.