- Timestamp:
- 12/16/10 15:03:42 (17 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
sandbox/camptocamp/print-geobi/src/main/java/org/mapfish/print/config/layout/PivotTableBlock.java
r3685 r3712 172 172 { 173 173 String curValue ; 174 174 175 175 try { 176 curValue = column.getString(dataIndexes.get(j)); 176 Float cellFloat = column.getFloat(dataIndexes.get(j)); 177 // one decimal by default 178 // TODO : this should be parameterized into the YAML 179 // configuration file. 180 curValue = String.format("%.1f", cellFloat); 177 181 } catch (Exception e) { 178 curValue = ""; // not found ? falling back to empty string value 182 try { 183 curValue = column.getString(dataIndexes.get(j)); 184 } catch (Exception e2) { 185 curValue = ""; // not found ? falling back to empty 186 // string value 187 } 179 188 } 180 189 … … 203 212 } 204 213 } 205 214 table.setSplitRows(false); 206 215 table.setComplete(true); 207 216 return table;
