xtype: 'Toolbar',
xns: Roo,
items : [
+ {
+ xtype: 'ComboBox',
+ xns: Roo.form,
+ allowBlank : false,
+ displayField : 'person_id_name',
+ editable : false,
+ emptyText : "Select person",
+ forceSelection : true,
+ hiddenName : 'id',
+ listWidth : 400,
+ loadingText : "Searching...",
+ minChars : 2,
+ name : 'name',
+ pageSize : 20,
+ qtip : "Select core_notify",
+ 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',
+ typeAhead : true,
+ valueField : 'person_id',
+ width : 300,
+ store : {
+ xtype: 'Store',
+ xns: Roo.data,
+ 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,
+ sortInfo : { direction : 'ASC', field: 'person_id_name' },
+ proxy : {
+ xtype: 'HttpProxy',
+ xns: Roo.data,
+ method : 'GET',
+ url : baseURL + '/Roo/core_notify.php'
+ },
+ reader : {
+ xtype: 'JsonReader',
+ xns: Roo.data,
+ id : 'id',
+ root : 'data',
+ totalProperty : 'total',
+ fields : [{"name":"id","type":"int"},{"name":"ontable","type":"string"}]
+ }
+ }
+ },
+ {
+ xtype: 'Fill',
+ xns: Roo.Toolbar
+ },
{
xtype: 'Button',
xns: Roo.Toolbar,
{
xtype: 'ColumnModel',
xns: Roo.grid,
- dataIndex : 'act_when',
- header : 'Act when',
+ dataIndex : 'id',
+ header : 'id#',
+ sortable : true,
+ width : 50,
+ renderer : function(v) { return String.format('{0}', v ); }
+ },
+ {
+ xtype: 'ColumnModel',
+ xns: Roo.grid,
+ dataIndex : 'evtype',
+ header : 'Method',
sortable : true,
width : 100,
- renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); }
+ renderer : function(v) { return String.format('{0}', v ); }
},
{
xtype: 'ColumnModel',