I am getting one value from webservice as a string (KM value , say 500000) . I want to display that in an inline vf page as 50,000. How to achieve this in apex controller. I am displaying the valu in a apex datatable as column value.
Please help me out
Eg ; 50000 should be 50,0000 OR 5000000 should be 5,000,000
Best Answer
Use apex:outputText with apex:param to format the text. as you are using datatable so it will look like
In controller you can try this
but still first you need to break the string using
'-'