Pman.Dialog.CoreNotifyRefer.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 16 May 2012 04:49:53 +0000 (12:49 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 16 May 2012 04:49:53 +0000 (12:49 +0800)
Pman.Dialog.CoreNotifyRefer.js

Pman.Dialog.CoreNotifyRefer.bjs
Pman.Dialog.CoreNotifyRefer.js

index 09bdff2..fd05ff7 100644 (file)
                                     "header": "Frequency",
                                     "width": 100,
                                     "xtype": "ColumnModel",
-                                    "|renderer": "function(v,x,r) { \n\n    Roo.log(this);\n    var cm = _this.grid.colModel;\n    var ix = cm.findColumnIndex('freq');\n    \n    var matches = this.editor.field.store.query('code',v);\n    if (!matches.length) {\n        return '';\n    }\n    return String.format('{0}', matches.first().data.title);\n }",
+                                    "|renderer": "function(v,x,r) { \n\n    Roo.log(this);\n    var cm = _this.grid.colModel;\n    var ix = cm.findColumnIndex('freq');\n    var ce = cm.getCellEditor(ix)\n    var matches = ce.field.store.query('code',v);\n    if (!matches.length) {\n        return '';\n    }\n    return String.format('{0}', matches.first().data.title);\n }",
                                     "|xns": "Roo.grid",
                                     "items": [
                                         {
index d264fd7..55ba5fe 100644 (file)
@@ -249,8 +249,8 @@ Pman.Dialog.CoreNotifyRefer = {
                                     Roo.log(this);
                                     var cm = _this.grid.colModel;
                                     var ix = cm.findColumnIndex('freq');
-                                    
-                                    var matches = this.editor.field.store.query('code',v);
+                                    var ce = cm.getCellEditor(ix)
+                                    var matches = ce.field.store.query('code',v);
                                     if (!matches.length) {
                                         return '';
                                     }