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
John TownsendJohn Townsend 

ConvertCurrency(Amount) function does not work when it is in a Query that is part of a class Deployed by instelling a Managed App.

I have developed an app that queries a Currency field using the convert currency function.  When displaying that field on a VF page, the convertcurrency feature is disabled - resulting in the user seeing the number as it was entered, not the converted value.  (The user is set upe with a different currency than that declared on the record where the field is found).

Strangely, this disabling of the convertCurrency(amount) funciton only occurs when the app is deployed by installing a MANAGED package.  When the same components are loaded to the appexchange as a non-managed package (and then installed) the convert currency fiunction behaves as expected.  A user with one currency sees the converted value when looking at the field displayed on the VF page.

This was tested by deploying hte app (Class and VF page) as an unmanaged app, confirming that it works, then RE-pushing the app to AppExchange (with no changes) as a Managed app.   Then when reinstalling the app to an org, the Amount field shows the number entered, not it;s converted value.

Why?  Is this a known defect in the AppExchange platform?