diff --git a/o2web/source/x_component_process_Xform/DatatablePC.js b/o2web/source/x_component_process_Xform/DatatablePC.js index 778e89e0131e59f6c3e951489588df382c4de049..4971922228553382974cb58b4101d6cf6ae7a2c8 100644 --- a/o2web/source/x_component_process_Xform/DatatablePC.js +++ b/o2web/source/x_component_process_Xform/DatatablePC.js @@ -390,12 +390,14 @@ MWF.xApplication.process.Xform.DatatablePC = new Class( var d = data.data[i]; if(d[json.id]){ tmpV = tmpV.plus(d[json.id].toFloat() || 0); - if( d[json.id].indexOf(".") > -1 ){ - pointLength = Math.max(pointLength, d[json.id].split(".")[1].length); + var v = d[json.id].toString(); + if( v.indexOf(".") > -1 ){ + pointLength = Math.max(pointLength, v.split(".")[1].length); } } } } + if( isNaN( tmpV ) ){ totalData[json.id] = ""; column.td.set("text", "" );