You need to sign in to do that
Don't have an account?
TehNrd
How to format currency in a dataTable
I have a data table that returns a double in one of the columns that represents currency but I am having a difficult time getting this to display correclty in a dataTable.
Essentially I want to go from this:
to this:
Thanks,
Jason
Essentially I want to go from this:
to this:
Thanks,
Jason
http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=897
but I am still struggling to get the data and the facet header to align right.
EDIT:
I've figured it out:
<apex:column style="text-align:right" headerClass="CurrencyElement">
<apex:facet name="header"><b>Total Price</b></apex:facet>
<apex:outputField value="{!lines.TotalPrice.amount}"/>
</apex:column>
Message Edited by TehNrd on 05-05-2008 02:14 PM
All Answers
http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=897
but I am still struggling to get the data and the facet header to align right.
EDIT:
I've figured it out:
<apex:column style="text-align:right" headerClass="CurrencyElement">
<apex:facet name="header"><b>Total Price</b></apex:facet>
<apex:outputField value="{!lines.TotalPrice.amount}"/>
</apex:column>
Message Edited by TehNrd on 05-05-2008 02:14 PM
Sure, I'm very very late, but was searching for this myself and found a good way to do it:
Hope it helps.