Make the badge display a number greater than 100

I am using the badge in a list but if a number is greater then 100 it shows 99+ is there a way to make it show a number greater than 100 ?




Hi Faisal,

Given what the documentation states (bottom of the page), that is not configurable.

What you can do is clone the widget, add it to your own module and customize the code to get the desired behavior.

Regards,

Daniel

Solution

Hi Faisal,

To clone the widget:

  1. Open OutSystemsUI, it will create a clone.
  2. Locate the Badge widget
  3. Copy paste it to your module, rename it to CustomBadge or something meaningful to you.

4. Now change the line:

If(Number <= 99, Number, "99+") 

To

Number

 5. and change references to the OutSystemsUI/Badge to your version of the Badge.

Now publish your app and test the result.

Solution

Daniël Kuhlmann wrote:

Hi Faisal,

To clone the widget:

  1. Open OutSystemsUI, it will create a clone.
  2. Locate the Badge widget
  3. Copy paste it to your module, rename it to CustomBadge or something meaningful to you.

4. Now change the line:

If(Number <= 99, Number, "99+") 

To

Number

 5. and change references to the OutSystemsUI/Badge to your version of the Badge.

Now publish your app and test the result.

 Hey Daniel 


thanks for showing it in detail Appretiated

Faisal