Entering currency fields on a form (outside of a grid)

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Entering currency fields on a form (outside of a grid)

Postby roddy » Wed Mar 09, 2022 2:15 am

I am trying to setup a text box to allow the user to enter a currency; while this works fine with $#,##0.00|#0.00 in an AG Grid, when using a 'Field' or a 'TextBox' web component I get the same results as in this previous topic:
viewtopic.php?f=22&t=9659

Unlike the AG Grid which has an edit format and a display format, the text box/field in a form only has a display format and a placeholder. So trying to enter 25 into the TextBox will display $250.00.

This surely must be possible; does anyone know how currency entry works in a form's text box/field?
roddy
 
Posts: 100
Joined: Mon Oct 26, 2020 12:32 am

Re: Entering currency fields on a form (outside of a grid)

Postby roddy » Fri Mar 11, 2022 3:55 am

For anyone else who gets caught up in this; the ability to have an edit format as well as a display format only appears if the data provider is type Number.
roddy
 
Posts: 100
Joined: Mon Oct 26, 2020 12:32 am


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 17 guests