Pman.Tab.XtupleReports.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 18 Dec 2013 13:36:46 +0000 (21:36 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 18 Dec 2013 13:36:46 +0000 (21:36 +0800)
Pman.Tab.XtupleReports.js

Pman.Tab.XtupleReports.bjs
Pman.Tab.XtupleReports.js

index 4c95fef..f6f0baf 100644 (file)
                                             "*prop": "colModel[]"
                                         },
                                         {
-                                            "xtype": "ColumnModel",
+                                            "*prop": "colModel[]",
+                                            "dataIndex": "report_loaddate",
                                             "header": "Report loaddate",
                                             "width": 75,
-                                            "dataIndex": "report_loaddate",
-                                            "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
-                                            "|xns": "Roo.grid",
-                                            "*prop": "colModel[]"
+                                            "xtype": "ColumnModel",
+                                            "|renderer": "function(v) { \n    var vv =   Date.parseDate(r.json.report_loaddatesplit('.')[0], 'Y-m-d H:i:s').format('d/M/Y h:ia');\n    return String.format('{0}', vv? vv.format('d/M/Y') : ''); \n\n    }",
+                                            "|xns": "Roo.grid"
                                         }
                                     ]
                                 }
index 6e02a5b..1150361 100644 (file)
@@ -382,10 +382,14 @@ Pman.Tab.XtupleReports = new Roo.XComponent({
                                 {
                                     xtype: 'ColumnModel',
                                     xns: Roo.grid,
+                                    dataIndex : 'report_loaddate',
                                     header : 'Report loaddate',
                                     width : 75,
-                                    dataIndex : 'report_loaddate',
-                                    renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
+                                    renderer : function(v) { 
+                                        var vv =   Date.parseDate(r.json.report_loaddatesplit('.')[0], 'Y-m-d H:i:s').format('d/M/Y h:ia');
+                                        return String.format('{0}', vv? vv.format('d/M/Y') : ''); 
+                                    
+                                        }
                                 }
                             ]
                         }