"width": 100,
"xtype": "TextField",
"|xns": "Roo.form"
+ },
+ {
+ "allowBlank": false,
+ "displayField": "desc",
+ "editable": false,
+ "emptyText": "Select Type",
+ "fieldLabel": "Type",
+ "hiddenName": "comptype",
+ "listWidth": 250,
+ "name": "comptype_name",
+ "qtip": "Select Company type",
+ "selectOnFocus": true,
+ "triggerAction": "all",
+ "typeAhead": false,
+ "valueField": "val",
+ "width": 200,
+ "xtype": "ComboBox",
+ "|xns": "Roo.form",
+ "items": [
+ {
+ "*prop": "store",
+ "data": "[ 'CONSULTANT', \"Consultant\" ],[ 'CLIENT' , \"Client\" ],[ 'CONTRACTOR' , \"Contractor\" ]",
+ "fields": "['val', 'desc']",
+ "xtype": "SimpleStore",
+ "|xns": "Roo.data"
+ }
+ ]
+ },
+ {
+ "allowBlank": true,
+ "fieldLabel": "Company Name",
+ "name": "name",
+ "qtip": "Enter Company Name",
+ "width": 300,
+ "xtype": "TextField",
+ "|xns": "Roo.form"
+ },
+ {
+ "allowBlank": true,
+ "fieldLabel": "Phone",
+ "name": "tel",
+ "qtip": "Enter Phone Number",
+ "width": 300,
+ "xtype": "TextField",
+ "|xns": "Roo.form"
+ },
+ {
+ "allowBlank": true,
+ "fieldLabel": "Fax",
+ "name": "fax",
+ "qtip": "Enter Fax Number",
+ "width": 300,
+ "xtype": "TextField",
+ "|xns": "Roo.form"
}
]
}
name : 'code',
qtip : "Enter code",
width : 100
+ },
+ {
+ xtype: 'ComboBox',
+ xns: Roo.form,
+ allowBlank : false,
+ displayField : 'desc',
+ editable : false,
+ emptyText : "Select Type",
+ fieldLabel : 'Type',
+ hiddenName : 'comptype',
+ listWidth : 250,
+ name : 'comptype_name',
+ qtip : "Select Company type",
+ selectOnFocus : true,
+ triggerAction : 'all',
+ typeAhead : false,
+ valueField : 'val',
+ width : 200,
+ store : {
+ xtype: 'SimpleStore',
+ xns: Roo.data,
+ data : '[ \'CONSULTANT\', "Consultant" ],[ \'CLIENT\' , "Client" ],[ \'CONTRACTOR\' , "Contractor" ]',
+ fields : '[\'val\', \'desc\']'
+ }
+ },
+ {
+ xtype: 'TextField',
+ xns: Roo.form,
+ allowBlank : true,
+ fieldLabel : 'Company Name',
+ name : 'name',
+ qtip : "Enter Company Name",
+ width : 300
+ },
+ {
+ xtype: 'TextField',
+ xns: Roo.form,
+ allowBlank : true,
+ fieldLabel : 'Phone',
+ name : 'tel',
+ qtip : "Enter Phone Number",
+ width : 300
+ },
+ {
+ xtype: 'TextField',
+ xns: Roo.form,
+ allowBlank : true,
+ fieldLabel : 'Fax',
+ name : 'fax',
+ qtip : "Enter Fax Number",
+ width : 300
}
]
}