+ "$ xns" : "Roo.form",
+ "allowBlank" : true,
+ "displayField" : "person_id_name",
+ "editable" : true,
+ "emptyText" : "Select person",
+ "forceSelection" : true,
+ "items" : [
+ {
+ "$ sortInfo" : "{ direction : 'ASC', field: 'person_id_name' }",
+ "$ xns" : "Roo.data",
+ "* prop" : "store",
+ "items" : [
+ {
+ "$ url" : "baseURL + '/Roo/core_notify.php'",
+ "$ xns" : "Roo.data",
+ "* prop" : "proxy",
+ "method" : "GET",
+ "xtype" : "HttpProxy"
+ },
+ {
+ "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"ontable\",\"type\":\"string\"}]",
+ "$ xns" : "Roo.data",
+ "* prop" : "reader",
+ "id" : "id",
+ "root" : "data",
+ "totalProperty" : "total",
+ "xtype" : "JsonReader"
+ }
+ ],
+ "listeners" : {
+ "|beforeload" : [
+ "function (_self, o){",
+ " o.params = o.params || {};",
+ " o.params._distinct='person_id';",
+ " o.params._columns='person_id,person_id_name,person_id_email';",
+ " o.params['!person_id_name'] = '';",
+ " ",
+ " // set more here",
+ "}",
+ ""
+ ]
+ },
+ "remoteSort" : true,
+ "xtype" : "Store"
+ }
+ ],
+ "listWidth" : 400,
+ "listeners" : {
+ "render" : [
+ "function (_self)",
+ "{",
+ " _this.personCombo = _self;",
+ "}"
+ ],
+ "select" : [
+ "function (combo, record, index)",
+ "{",
+ " _this.grid.footer.onClick('first');",
+ "}"
+ ]
+ },
+ "loadingText" : "Searching...",
+ "minChars" : 2,
+ "pageSize" : 20,
+ "qtip" : "Select person",
+ "queryParam" : "query[person_id_name]",
+ "selectOnFocus" : true,
+ "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{person_id_name}</b> {person_id_email}</div>",
+ "triggerAction" : "all",
+ "valueField" : "person_id",
+ "width" : 200,
+ "xtype" : "ComboBox"
+ },
+ {
+ "$ xns" : "Roo.Toolbar",
+ "xtype" : "Separator"
+ },
+ {
+ "$ xns" : "Roo.form",
+ "allowBlank" : true,
+ "displayField" : "display_name",
+ "editable" : true,
+ "emptyText" : "Select notify type",
+ "forceSelection" : true,
+ "items" : [
+ {
+ "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
+ "$ xns" : "Roo.data",
+ "* prop" : "store",
+ "items" : [
+ {
+ "$ url" : "baseURL + '/Roo/core_enum.php'",
+ "$ xns" : "Roo.data",
+ "* prop" : "proxy",
+ "method" : "GET",
+ "xtype" : "HttpProxy"
+ },
+ {
+ "$ fields" : "[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"display_name\",\"type\":\"string\"}]",
+ "$ xns" : "Roo.data",
+ "* prop" : "reader",
+ "id" : "id",
+ "root" : "data",
+ "totalProperty" : "total",
+ "xtype" : "JsonReader"
+ }
+ ],
+ "listeners" : {
+ "|beforeload" : [
+ "function (_self, o){",
+ " o.params = o.params || {};",
+ " o.params.etype = 'Core.NotifyType';",
+ " o.params.active = 1;",
+ "}",
+ ""
+ ]
+ },
+ "remoteSort" : true,
+ "xtype" : "Store"
+ }
+ ],
+ "listWidth" : 400,
+ "listeners" : {
+ "render" : [
+ "function (_self)",
+ "{",
+ " _this.typeCombo = _self;",
+ "}"
+ ],
+ "select" : [
+ "function (combo, record, index)",
+ "{",
+ " _this.grid.footer.onClick('first');",
+ "}"
+ ]
+ },
+ "loadingText" : "Searching...",
+ "minChars" : 2,
+ "pageSize" : 20,
+ "qtip" : "Select type",
+ "queryParam" : "query[name]",
+ "selectOnFocus" : true,
+ "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b></div>",
+ "triggerAction" : "all",
+ "valueField" : "name",
+ "width" : 200,
+ "xtype" : "ComboBox"
+ },
+ {
+ "$ xns" : "Roo.Toolbar",
+ "xtype" : "Separator"
+ },
+ {
+ "$ xns" : "Roo.Toolbar",
+ "text" : "From",
+ "xtype" : "TextItem"
+ },
+ {
+ "$ xns" : "Roo.form",
+ "format" : "d/M/Y",
+ "listeners" : {
+ "render" : [
+ "function (_self)\r",
+ "{\r",
+ " _this.fromDateSel = _self;\r",
+ " //_self.setValue( new Date() );\r",
+ "}"
+ ],
+ "select" : [
+ "function (combo, date)",
+ "{",
+ " _this.grid.footer.onClick('first');",
+ "}"
+ ]
+ },
+ "width" : 100,
+ "xtype" : "DateField"
+ },
+ {
+ "$ xns" : "Roo.Toolbar",
+ "xtype" : "Separator"
+ },
+ {
+ "$ xns" : "Roo.Toolbar",
+ "text" : "To",
+ "xtype" : "TextItem"
+ },
+ {
+ "$ xns" : "Roo.form",
+ "format" : "d/M/Y",
+ "listeners" : {
+ "render" : [
+ "function (_self)\r",
+ "{\r",
+ " _this.toDateSel = _self;\r",
+ " //_self.setValue( new Date() );\r",
+ "}"
+ ],
+ "select" : [
+ "function (combo, date)",
+ "{",
+ " _this.grid.footer.onClick('first');",
+ "}"
+ ]
+ },
+ "width" : 100,
+ "xtype" : "DateField"
+ },
+ {
+ "$ xns" : "Roo.Toolbar",
+ "xtype" : "Fill"
+ },
+ {
+ "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
+ "$ xns" : "Roo.Toolbar",
+ "cls" : "x-btn-text-icon",
+ "listeners" : {
+ "|click" : [
+ "function()",
+ "{",
+ " Pman.genericDelete(_this, 'core_notify'); ",
+ "}",
+ " "
+ ]
+ },
+ "text" : "Delete",
+ "xtype" : "Button"
+ },
+ {
+ "$ xns" : "Roo.Toolbar",
+ "enableToggle" : true,
+ "listeners" : {
+ "render" : [
+ "function (_self)",
+ "{",
+ " _this.toggleBtn = _self;",
+ "}"
+ ],
+ "toggle" : [
+ "function (_self, pressed)",
+ "{",
+ " this.setText(pressed ? \"Hide Completed\" : \"Show Completed\");",
+ " _this.grid.footer.onClick('first');",
+ "}"
+ ]
+ },
+ "text" : "Show Completed",
+ "xtype" : "Button"