Results 1 to 2 of 2

Thread: Best way to load Form from Complex store

  1. #1
    Touch Premium Member
    Join Date
    Jan 2009
    Posts
    61
    Vote Rating
    1
      0  

    Exclamation Best way to load Form from Complex store

    Is there any best way to load form from Comples store record?

    Form
    Code:
    items:[
    								{  xtype:'fieldset',
    									 defaults: {
    											required: true,	
    											labelAlign: 'left',
    											labelWidth: '27.5%'
    										},
    									items:[{
    											xtype: 'textfield',
    											name : 'firstname',
    											label: 'Name',
    											useClearIcon: true,
    											autoCapitalize : false
    										   },
    										   {
    											xtype: 'textfield',
    											name : 'lastname',
    											label: 'Surname',
    											useClearIcon: true,
    											autoCapitalize : false
    										  },
    {
    											xtype: 'textfield',
    											name : 'No',
    											required: false,
    											label: 'No',
    											useClearIcon: true,
    											autoCapitalize : false
    										  },
    										  {
    											xtype: 'textfield',
    											name : 'Street',
    											required: false,
    											label: 'Street',
    											useClearIcon: true,
    											autoCapitalize : false
    										 },
    										 {
    											xtype: 'textfield',
    											name : 'City',
    											required: false,
    											label: 'City',
    											useClearIcon: true,
    											autoCapitalize : false
    										 }
    ]
    Store data
    Code:
    [{"PersonDetail":{"Name":"Peter","Surname":"scott"},"PostalAddress":{"No":"1","Street":"Newland St","City":"AUS"}}]

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1382
      0  

    Default

    I would merge all values into one Object
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

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