13
Views
5
Comments
Input widget needs to display integer value with two decimal digits, ex: 28 as 28.00
Question
Application Type
Reactive

Reactive application : 

I have an input widget which displays data using an API,

It displays decimal digits properly, however I need to display the integer values also as decimal values.

as 

But this is not working.

Kindly help.

Rank: #396

Hi Sushma,

I suggest you to make the value text if only u are not calculating it.

And U can play with display of the input.


Regards,
Amreen

Rank: #493

Hi,

I think this forge component can help you https://www.outsystems.com/forge/component-overview/7838/inputmask-react 

Hope this help

Hello Sushma,


The easiest way to achieve this will be converting your integer value to text and concatenating with .00 like below :

output :

You can proceed for this if you just want to display in this format.

Hope it helps!


Sanjay

Rank: #3982

Hi Sanjay,

Here I need to use input widget , according to our requirement. 

Could you please suggest something that can work in input widget ?

Hello Sushma,


Can you please provide more detail on your requirement(including table structure). As per my understanding your attribute is of integer type which you want to to display with 2 decimal digits.

If you want to take input in decimal format, how will you save it in integer? 


Sanjay