Pman.Dialog.CoreNotifyRefer.js
"header": "Frequency",
"width": 100,
"xtype": "ColumnModel",
- "|renderer": "function(v) { \n\n \n grid.colModel.config[2].editor.field.store.query('code','WEEKLY').first().data.title\n return String.format('{0}', v);\n }",
+ "|renderer": "function(v) { \n\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": [
{
renderer : function(v) {
- grid.colModel.config[2].editor.field.store.query('code','WEEKLY').first().data.title
- return String.format('{0}', v);
+ var matches = this.editor.field.store.query('code',v);
+ if (!matches.length) {
+ return '';
+ }
+ return String.format('{0}', matches.first().data.title);
},
editor : {
xtype: 'GridEditor',