emptyText : "Select Project Type",
fieldLabel : 'Project Type',
forceSelection : true,
+ hiddenName : 'type',
listWidth : 400,
loadingText : "Searching...",
minChars : 2,
- name : 'type',
+ name : 'type_desc',
pageSize : 20,
qtip : "Select Project Type",
queryParam : 'query[name]',
typeAhead : true,
valueField : 'code',
width : 200,
- hiddenName : '',
store : {
xtype: 'SimpleStore',
xns: Roo.data,
listeners : {
add : function (combo)
{
- Pman.Dialog.Companies.show( { id: 0 }, function(data) {
+ Pman.Dialog.CoreCompanies.show( { id: 0 }, function(data) {
_this.form.setValues({
client_id : data.id,
client_id_name : data.name
}
},
allowBlank : 'false',
- displayField : 'code',
+ displayField : 'name',
editable : 'false',
emptyText : "Select Company",
fieldLabel : 'Client',
name : 'client_id_name',
pageSize : 20,
qtip : "Select Companies",
- queryParam : 'query[code]',
+ queryParam : 'query[name]',
selectOnFocus : true,
tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
triggerAction : 'all',