You need to sign in to do that
Don't have an account?
Display only USD value AUD 450,000.00 (USD 455,843.92) to 455,843.92
i have created a visualforce page diplaying set of fields data in columns :-
My Column :-
<apex:column headerValue="Total Price(USD)">
<apex:repeat value="{!varOpp.opp.OpportunityLineItems}" var="PrdLst" rendered="{!if(varOpp.opp.OpportunityLineItems.size>0 , true, false)}" >
<apex:outputField value="{!PrdLst.TotalPrice}"/><br/>
<apex:param value="{!convertCurrencyWithApexCode}"/>
</apex:repeat>
</apex:column>
Now, I'm getting the data in AUD 450,000.00 (USD 455,843.92) format where i want to display only USD 455,843.92
RST1
apex:outputField will display the value as it would be displayed on the normal Force.com UI; thus, if the Oppo has currencyIsoCode = AUD and your corporate currency is USD, you get what you observed.
If you only want the corporate currency value and you are not using dated exchange rates, then this post will be the answer - http://boards.developerforce.com/t5/Apex-Code-Development/How-to-get-currency-value-in-corporate-currency/td-p/256833
If you are using date exchange rates, you'll need something like this (presumed included in a Utility class):
As a side note, if you are using (or plan to use) dated exchange rates, you are even more hampered with apex:outputField
In this case, you'll need a reusable VF component to display your corporate currency like this: