Document template-language

0
Hello,   I’m using two document templates one for English other for Arabic. I’m using string to display numbers in Arabic documents because while changing language (eng-ar) numbers also translate to Arabic letters but I want them in English letters(like 1,2,3) so stored numbers in string in an Arabic document template using microflow.   Now I want to add commas/group digits in numbers. It is possible in English but I can’t able to add group digits in Arabic because of the string. is there any way to perform group digits in microflow or any suggestions?      
asked
2 answers
0

Hi Thilothama,

 

I think you can use the formatDecimal() to ensure that it uses the correct grouping of digits rather then toString().

https://docs.mendix.com/refguide/parse-and-format-decimal-function-calls/#3-formatdecimal

answered
0

Hi Thilohama,
An an alternate way You can use Your custom logic using java by creating a Custom Java Action  .

 

Ref: https://www.tutorialspoint.com/java_i18n/java_i18n_grouping_digits.htm

https://www.java67.com/2015/06/how-to-format-numbers-in-java.html

 

answered