function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jens Peter KristensenJens Peter Kristensen 

add a currency field to opportunityLineItem

Hi

I have a problem with showing the opportunityLineItem total value correctly according to the user.locale.
I have tried to out the field TotalPrice from opportunityLineItem with <apex:outputField but that is not possible since we run multicurrency on the org and therefor i get this error "Currency fields on entities with effective dated currency are not supported.".
I have the correct value in opportunityLineItem.TotalPrice

I have then found out that I need to create a wrapperclass in my apex extension controller so that I can add a currencyfield to opportunityLineItem. The only thing I need to achieve with this field is to be able to output it with <apex:outputField  so that it is correct formatted.
But I can't really get it to run - can someone help me to create that wrapper class ?
and how when do i trigger that wrapperclass ?

Thanks a lot.

Br

jpk