Hello,
I am are rendering an xml template as PDF using suitlet
I tried to customize the number format of a variable in the XML free marker template, but it is still printing as an empty value.
Suitelet data
data.section1 = [{"label":"label","value":15217.5},{"label":"label","value":1777024.5},{"label":"label","value":116.7750616067028},{"label":"label","value":0},{"label":"label","value":"30.3641%"},{"label":"label","value":539576.6626},{"label":"label","value":35.457641701987846}]
xml template
<#list data.section1 as scenarios>
<tr class="comforta" line-height="12">
<td class="lineTable" colspan="6" align="left">${scenarios.label}</td>
<td class="lineTable" align="left" colspan="12"> </td>
<td class="lineTable columnColor" align="right" colspan="4">${scenarios.value?string(",##0.00")} </td>
</tr>
</#list>
The numbers are printing as expected using ${scenarios.value}
Appreciate help!