xns: Roo,
closable : false,
collapsible : false,
- height : 350,
+ height : 290,
resizable : false,
title : "Edit / Create Contact Details",
- width : 500,
+ width : 450,
items : [
{
xtype: 'ContentPanel',
if (!coid ) {
Ext.MessageBox.alert("Error", "Select An Company First");
- return false
+ return false;
+
+ }
+ Pman.Dialog.Office.show(cfg, function(data) {
+ _this.form.setValues({
+ office_id_name : data.name,
+ office_id : data.id
+ });
+ });
+
+
+ },
+ beforequery : function (combo, query, forceAll, cancel, e)
+ {
+ var coid = _this.form.findField('company_id').getValue();
+ if (coid < 1 ) {
+ Ext.MessageBox.alert("Error", "Select An Company First");
+ return false;
}
}
},
xns: Roo.form,
fieldLabel : 'Name',
name : 'name',
- width : 300
+ width : 300,
+ allowBlank : true
},
{
xtype: 'TextField',
{
xtype: 'TextField',
xns: Roo.form,
+ allowBlank : false,
fieldLabel : 'Email',
name : 'email',
width : 200