PDA

View Full Version : Retrieving field values



TampaBay55
29 May 2009, 6:01 AM
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 :s.



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.

mango
29 May 2009, 6:08 AM
Can you post the JSON data to be populated in the form?