...
Another example would be displaying negative numbers surrounded by brackets, similar to Excel.
In the example below, the field DMBTR the Amount field is a Text column in a Table, named DMBTR.
Instructions:
- In the Advanced Property of the field DMBTR, set the binding as:
text="{path : 'DMBTR',type : 'sap.ui.model.type.Float',formatOptions: { groupingEnabled : true, decimals: 2}, formatter: 'amountFormatter'}
- In a Script node, create the function 'amountFormatter' as:
...