Results 1 to 2 of 2

Thread: Retrieving field values

  1. #1
    Sencha User
    Join Date
    May 2009
    Posts
    300

    Default Retrieving field values

    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.

  2. #2
    Ext User
    Join Date
    Apr 2008
    Posts
    36

    Default

    Can you post the JSON data to be populated in the form?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •