If I have a decimal attribute in my app that represents currency, I may want to format that as $15,312.22 or €15.312,22 in a Text widget or in the text of an Action button.
To accomplish this, I can
All of these approaches have drawbacks. A separate attribute requires page invoked microflows or event handlers and can get out of sync if my model doesn't account for all the places that the attribute can be changed. FormatString works, but add on widgets can hinder my ability to move my model to the latest Mendix version. The post requires multiple attributes if I want to have a string like 'Total Sell Price: $15,312.22'. And the CustomString widget uses microflows so should be used sparingly.
My idea is to build in currency (and datetime) formatting to parameters in the Text widget and Button text, so that when I add a parameter to a Text widget, I am presented with options about how to format a number or date, like this: