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

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

index 14a9bbc..09bdff2 100644 (file)
                                     "header": "Frequency",
                                     "width": 100,
                                     "xtype": "ColumnModel",
-                                    "|renderer": "function(v,x,r) { \n\n    Roo.log(this);\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    \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 }",
                                     "|xns": "Roo.grid",
                                     "items": [
                                         {
index 8426e28..d264fd7 100644 (file)
@@ -247,6 +247,9 @@ Pman.Dialog.CoreNotifyRefer = {
                                 renderer : function(v,x,r) { 
                                 
                                     Roo.log(this);
+                                    var cm = _this.grid.colModel;
+                                    var ix = cm.findColumnIndex('freq');
+                                    
                                     var matches = this.editor.field.store.query('code',v);
                                     if (!matches.length) {
                                         return '';