The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
79 views

How to get correct week number in Apex

I am struggling to get the correct week in year for any given date. Datetime dt = Datetime.newInstanceGmt(2014, 1, 5).addHours(12); Integer week = Integer.valueOf(dt.formatGmt('w')); ...
2
votes
1answer
89 views

Is there a good way to “untranslate” picklists in Apex?

The project I am working on supports many languages and Case record types. There is also a large amount of dependency between the Case record type and the Case type field (but it isn't one-to-one and ...
6
votes
2answers
521 views

Which decimal symbol is used in the current user's Locale

For complicated reasons I need to find out which symbol (dot or comma) is used for Decimals in the current User's Locale. Is there any way to find that out using Apex or formulas?
9
votes
2answers
3k views

Format decimal in <apex:outputText> respecting the user's Locale

I'd like to format a decimal number in an <apex:outputText> respecting the user's locale: Using {0,number,####.###} should show a German user 10,234 and an American user 10.234 The ...
1
vote
1answer
103 views

Determining number separator when inputHidden doesn't format a currency number

If I return an object with a currency field, and I'm returning it from a controller. If I use an <apex:inputField>, the number is correctly formatted as 1,234.56. However, if I use an ...
1
vote
1answer
845 views

How to use locale settings for decimal separator

How can i use Locale setting to know decimal separator? I read on net that - The Salesforce locale settings determine the following display formats: * Date and time * Users’ names * Addresses ...
3
votes
1answer
146 views

change Locale in Visualforce

Here we are discussing about localization in Visualforce, we know best practices that involve HOW to implement localization, Custom Labels and such. We are looking for a smart way to implement the ...
3
votes
1answer
446 views

Localization in Salesforce

Here we are discussing about localization in Visualforce, and we know these two solutions: 1) use cookies 2) use a parameter on the URL that specifies the language selected by the user Is there any ...
5
votes
1answer
101 views

Force.com IDE adds localized fields on sync?

I have a project that I keep in Git and use ant most of the time to deploy it to dev orgs and the production org where we create the package. When I sync the project with the development environment ...
8
votes
1answer
1k views

How to access the Organization “Currency Locale” ISO Locale code (NOT Currency code) in Apex/SOQL

First of all, before telling me that this is a duplicate of the previously-asked question "Display currency symbol", READ THE WHOLE QUESTION. Summary: I am trying to replicate the functionality of ...
6
votes
2answers
1k views

Default currency symbol

I'm looking for a way to get the Default currency symbol (in a none-multi-currency org) of the salesforce org locale (to have it displayed on a visualforce page in a field that can't be ...