Converts a Source Number value as the default Java Locale into a String whose format is user-defined by the Locale parameter. For example, passing a number value of "1000.01" to a String defined with the "nl-NL" (Netherlands) locale will result in the value "1.000,01". The format of the Locale needs to be a language tag.
This is the exact reverse of the CreateNumberFromStringWithLocale action; instead of receiving a European-formatted string and converting it to a number, you're taking a number from your system and formatting it as a string for a European trading partner.
Think of the two actions as a pair — CreateNumberFromStringWithLocale is for inbound data coming in, and CreateStringFromNumberWithLocale is for outbound data going out. Together they handle the full round-trip when integrating with international trading partners.
| Property | Type | Description |
|---|---|---|
| Source Value | String | The source number value. |
| Source Locale | String | This is the locale that represents the format of the source value. |
If the number value or Locale is NULL then returns NULL.
Scenario: Sending an outbound invoice to a Dutch supplier
Your internal system holds the price as 1000.01. Before sending it out in an EDI document destined for the Netherlands, you need to reformat it to match their expected convention.
| Property | Value |
|---|---|
| Source Value |
1000.01 (number from your system)
|
| Source Locale | "nl-NL" |
| Result |
"1.000,01" (string formatted for the recipient)
|
Passing a number value of "1000.01" to a string defined with the "nl-NL" locale results in the value "1.000,01".
Comments
0 comments
Please sign in to leave a comment.