Error using Formatter

OS info

  • Operating System : Windows 10.0.17763
  • Wappler Version : 2.1.2

Problem description

When I try to use formatter on a value I get an error in the console.

{{SubTotal.value.formatNumber(2, ".", ",")}}

Formatter formatNumber doesn't exist for type string

What am I doing wrong?

report_2019-5-30_2-44-19.zip (292.8 KB)

{{SubTotal.value.toNumber().formatNumber(2, ".", ",")}}

The error describes the issue - value is not a number… but a string… so it cant be formatted. Convert to number, then apply number format.

2 Likes