"forceSelection" : true,
"selectOnFocus" : true,
"pageSize" : 20,
- "displayField" : "title",
- "emptyText" : "Select Person table",
+ "displayField" : "value",
+ "emptyText" : "Select Person Table",
"minChars" : 2,
- "value" : "ALL",
- "valueField" : "code",
+ "value" : "Person",
+ "valueField" : "value",
"xtype" : "ComboBox",
"allowBlank" : true,
"typeAhead" : true,
+ "Boolean alwaysQuery" : true,
"editable" : false,
"width" : 150,
"$ xns" : "Roo.form",
- "name" : "action",
- "qtip" : "Select Action",
- "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{title}</b> </div>",
+ "name" : "person_table",
+ "qtip" : "Select Person Table",
+ "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{value}</b> </div>",
"loadingText" : "Searching...",
"items" : [
{
- "| data" : "(function() { \n var ret = [\n [ 'ALL', 'All Transactions' ],\n [ 'UNPOSTED', 'Unposted' ],\n [ 'POSTED', 'Posted' ],\n [ 'VOIDED', 'Voided' ],\n [ '--', '-----------------' ] \n ];\n var c = baseURL.split('/').pop().split('.').shift(); \n Roo.each(uiConfig.xtuple_offices, function(o) {\n if (o == c) {\n return;\n }\n ret.push( [ 'office-' + o, \"Transfers from \" + Pman.Xtuple.offices[o] ] );\n\n });\n \n return ret;\n \n \n})()",
+ "| data" : "(function() { \n\n if(typeof(uiConfig.events_person_table) == 'undefined' || !uiConfig.events_person_table.length){\n\n return []; \n }\n\n return uiConfig.events_person_table;\n \n})()",
"xtype" : "SimpleStore",
- "$ fields" : "[ 'code', 'title' ]",
+ "$ fields" : "[ 'value' ]",
"$ xns" : "Roo.data",
"* prop" : "store",
"isLocal" : true
"xtype" : "ColumnModel",
"header" : "Staff",
"width" : 150,
- "$ renderer" : "function(v,x,r) { \n \n var efield = typeof(_this.email_field) == 'undefined' ? 'person_id_email' : _this.email_field;\n var nfield = typeof(_this.name_field) == 'undefined' ? 'person_id_name' : _this.name_field; \n \n Roo.log([r, efield, nfield]);\n \n var email = r.json[efield]; // ? r.data.person_id_email : r.data.person_id_email;\n var name = r.json[nfield]; // ? r.data.person_id_name : r.data.person_id_name; \n return String.format('{0} <<a href=\"mailto:{1}\">{1}</a>>', \n name, email); \n\n\n}",
+ "$ renderer" : "function(v,x,r) { \n \n var efield = typeof(_this.email_field) == 'undefined' ? 'person_id_email' : _this.email_field;\n var nfield = typeof(_this.name_field) == 'undefined' ? 'person_id_name' : _this.name_field; \n \n //Roo.log([r, efield, nfield]);\n \n var email = r.json[efield]; // ? r.data.person_id_email : r.data.person_id_email;\n var name = r.json[nfield]; // ? r.data.person_id_name : r.data.person_id_name; \n return String.format('{0} <<a href=\"mailto:{1}\">{1}</a>>', \n name, email); \n\n\n}",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
"dataIndex" : "person_id_name"