Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Another example would be displaying negative numbers surrounded by brackets, similar to Excel.

Image Added

In the example below, the field DMBTR the Amount field is a Text column in a Table, named DMBTR.

Instructions:

  1. 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'}
  2. In a Script node, create the function 'amountFormatter' as:

...