var firstNameField = formPanel.items.get(0).items.get(0);
firstNameField.setValue('Joe');
var requestData = {
FirstName: 'Joe',
LastName: 'Bloggs',
EmailAddress: 'info@swarmonline.com',
TelNumberCode: '0777',
TelNumber: '7777777',
RequestDetails: 'This is some Request Detail body text',
RequestType: {
type1: true,
type2: false,
type3: false,
type4: true,
type5: true,
type6: false
}
};
formPanel.getForm().setValues([{id: 'FirstName', value: 'Joe'}]);
Ext.define('Request', {
extend: 'Ext.data.Model',
fields: [
'FirstName',
'LastName',
'EmailAddress',
'TelNumberCode',
'TelNumber',
'RequestDetails',
'RequestType'
]
});
var requestModel = Ext.create('Request', requestData);
formPanel.getForm().load({
url: 'requestDetails.json'
});
댓글 없음:
댓글 쓰기