Jaspersoft ireport : format a number as a phone number with substring
We had 0123456789 and we have now 01 23 45 67 89 with
$F{TELEPHONE_REF}.substring(0,2)
+ » «
+$F{ TELEPHONE_REF }.substring(2,4)
+ » «
+$F{ TELEPHONE_REF }.substring(4,6)
+ » «
+$F{ TELEPHONE_REF }.substring(6,8)
+ » «
+$F{ TELEPHONE_REF }.substring(8,10)