Hello:
I don’t know what I’m doing wrong but I can’t get the math functions to work in a grid footer.
My code is like this:
Includes:
grid generation:
dataGrid = new dhtmlXGridObject('gridDataContainer');
dataGrid.setImagePath("common/imgs/");
dataGrid.setHeader("CRAFT,WORK ORDER,DATE");
dataGrid.setInitWidths("150,200,90");
dataGrid.setColTypes("ro,ro,ro");
dataGrid.setColSorting("str,str,str");
dataGrid.attachFooter("-, <b>Count:</b> {#stat_count},{#stat_count}");
dataGrid.init();
dataGrid.setSkin("dhx_skyblue");
dataGrid.loadXML("ScopeFreezeBetweenDatesList.do?projectId=" +
"&dateOne="+document.datosGrafico.dateOne.value+
"&dateTwo="+document.datosGrafico.dateTwo.value);
But this shows the string “{#stat_count}” and not the result of the calculation.
So is there anything missing?
Thanks in advance.
Javier