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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    I would merge all values into one Object
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •