I have input field for amount and i have to format that amount in European currency
I want to show it in European format so 12.000,55 dot for thousands seperator and comma for decimals
Some example
1,000 dollars and euros:
Standard Format: $1,000.00
European Format: €1.000,00
I am not supposed to use any forge component any suggestions would be appreciated how i can achieve this and what is data type i have to keep like decimal currency or text.
Thanks
Rizwan
Hi @Mohammed Rizwan,
As per you question In outsystems built in function for format currency
FormatCurrency(87.63, "$", 2, ".", ",")
use this function.
To create a function for formatting currency in Euros within OutSystems, follow these steps:
Define the Client Action: Create a action named FormatEuro. This action will centralize the currency formatting logic.
Input and Output Parameters:
Implement the Logic:
FormatCurrency(In, "€", 2, ".", ",")
Centralize Configuration: By centralizing the formatting logic in a server action, any changes to the formatting can be made in one place. This ensures consistency across the application and simplifies maintenance.
Activate the Function Client Action: Ensure the action is callable from various parts of your application.
Example Usage:
hallo @Mohammed Rizwan ,
you can check this two link and i think in case you need custom format can you create custom client action as function and use is
https://success.outsystems.com/documentation/11/reference/outsystems_language/logic/built_in_functions/format/
https://www.outsystems.com/forums/discussion/40055/currency-convert/