=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/plugin.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/plugin.js 2012-05-15 22:43:36 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/plugin.js 2012-05-16 12:56:16 +0000 @@ -1092,6 +1092,7 @@ orgunits: [], crosstab: ['data'], orgUnitIsParent: false, + hiddenCols: [], useExtGrid: false, el: '', url: '' @@ -1146,10 +1147,12 @@ }); return headers; }, - getColumnArray: function(data) { + getColumnArray: function(conf,data) { var columns = []; Ext.Array.each(data.headers, function(header, index) { - columns.push({text: header.name, dataIndex: header.name}); + if (!Ext.Array.contains(conf.hiddenCols, index) && !Ext.Array.contains(conf.hiddenCols, header)) { + columns.push({text: header.name, dataIndex: header.name}); + } }); return columns; }, @@ -1168,7 +1171,7 @@ success: function(data) { DHIS.table.tables[conf.el] = Ext.create('Ext.grid.Panel', { store: DHIS.table.grid.getStore(data), - columns: DHIS.table.grid.getColumnArray(data), + columns: DHIS.table.grid.getColumnArray(conf,data), renderTo: conf.el }); } === modified file 'dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/plugin/index.html' --- dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/plugin/index.html 2012-05-15 22:32:35 +0000 +++ dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/plugin/index.html 2012-05-16 12:56:16 +0000 @@ -5,7 +5,7 @@ - +