"pageSize" : 20,
"displayField" : "person_id_name",
"emptyText" : "Select person",
- "hiddenName" : "id",
"minChars" : 2,
"valueField" : "person_id",
"xtype" : "ComboBox",
"editable" : true,
"width" : 200,
"$ xns" : "Roo.form",
- "name" : "name",
- "qtip" : "Select core_notify",
+ "qtip" : "Select person",
"queryParam" : "query[person_id_name]",
"tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{person_id_name}</b> {person_id_email}</div>",
"loadingText" : "Searching...",
"selectOnFocus" : true,
"pageSize" : 20,
"displayField" : "display_name",
- "emptyText" : "Select person",
- "hiddenName" : "id",
+ "emptyText" : "Select notify type",
"minChars" : 2,
"valueField" : "name",
"xtype" : "ComboBox",
"editable" : true,
"width" : 200,
"$ xns" : "Roo.form",
- "name" : "name",
- "qtip" : "Select core_notify",
- "queryParam" : "query[person_id_name]",
- "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{person_id_name}</b> {person_id_email}</div>",
+ "qtip" : "Select type",
+ "queryParam" : "query[name]",
+ "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b></div>",
"loadingText" : "Searching...",
"items" : [
{
"listeners" : {
- "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n o.params._distinct='person_id';\n o.params._columns='person_id,person_id_name,person_id_email';\n o.params['!person_id_name'] = '';\n \n // set more here\n}\n"
+ "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n o.params.evtype = 'Core.NotifyType';\n o.params.active = 1;\n}\n"
},
"xtype" : "Store",
"remoteSort" : true,
- "$ sortInfo" : "{ direction : 'ASC', field: 'person_id_name' }",
+ "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
"$ xns" : "Roo.data",
"* prop" : "store",
"items" : [
{
- "$ url" : "baseURL + '/Roo/core_notify.php'",
+ "$ url" : "baseURL + '/Roo/core_enum.php'",
"xtype" : "HttpProxy",
"method" : "GET",
"$ xns" : "Roo.data",
"root" : "data",
"xtype" : "JsonReader",
"$ xns" : "Roo.data",
- "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"ontable\",\"type\":\"string\"}]",
+ "$ fields" : "[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"display_name\",\"type\":\"string\"}]",
"* prop" : "reader",
"totalProperty" : "total"
}