+ Start a Discussion
wsuycottwsuycott 

Inline Account Hierarchy field added but not displaying $ format

Have a custom field at the Account level - current_assets__c and have added this field to the Inline Hierarchy component as:

 

<apex:outputText style="{!IF(pos.currentNode,'font-weight: bold;','')}" value=", {!pos.account.Current_Assets__c}"/>

 

But when rendered it displays in scientific notation (i.e. USD 79,875,000.00 shows as 7.9875E+7)

We utilize multi-currency in our org so dollar fields are prefaced with USD vs. $.

 

Does anyone have ideas on how I can get this to work properly - either with $ or the USD notation?

Best Answer chosen by Admin (Salesforce Developers) 
aalbertaalbert

Try using <apex:outputField> instead of <apex:outputText>. outputfield will leverage the field's data type, where outputText doesn't.

 

All Answers

aalbertaalbert

Try using <apex:outputField> instead of <apex:outputText>. outputfield will leverage the field's data type, where outputText doesn't.

 

This was selected as the best answer
Glenn at MvistaGlenn at Mvista

How do you do this with multi-currency?  I get this error when I use outputField on a currency field

 

Error: Currency fields on entities with effective dated currency are not supported.