Negative numbers not showing in forms

If you think that something doesn't work in Aware IM post your message here
Post Reply
karelh
Posts: 73
Joined: Wed Oct 26, 2016 10:20 pm

Negative numbers not showing in forms

Post by karelh »

Hi,

I came across a problem where negative numbers are not shown on the forms. They display correct under queries and grids but not on any form. When you open the form you can see the number for a split second but as soon as the form has it styles applied it disappears.(Just blank) If you change the number to a positive value then it displays correct. Has anyone else experienced this problem?
karelh
Posts: 73
Joined: Wed Oct 26, 2016 10:20 pm

Re: Negative numbers not showing in forms

Post by karelh »

After some more testing I figured out it is only when using currency as the format. (I tried the default currency format and a custom one)
BenHayat
Posts: 2749
Joined: Thu Dec 23, 2010 5:48 am
Location: Fla, USA
Contact:

Re: Negative numbers not showing in forms

Post by BenHayat »

karelh wrote:After some more testing I figured out it is only when using currency as the format. (I tried the default currency format and a custom one)
Please create a simple Test BSV with instruction to run it and send to Support.
karelh
Posts: 73
Joined: Wed Oct 26, 2016 10:20 pm

Re: Negative numbers not showing in forms

Post by karelh »

Thank you. I will send it to you tonight.
karelh
Posts: 73
Joined: Wed Oct 26, 2016 10:20 pm

Re: Negative numbers not showing in forms

Post by karelh »

Hi,

I have emailed it to support. Please note that it only happens when the locale is changed and it is a negative number.
JonP
Posts: 287
Joined: Thu Feb 16, 2017 9:49 pm
Location: United States

Re: Negative numbers not showing in forms

Post by JonP »

In a possibly related issue, ranges won't take negative numbers.

1. Use/create a number attribute.
2. Try to set the "Min. Value" to a negative number. At first, the control will replace the "-" with a "0", but if you type "-" a second time, it will show up and you can replace the 0 with the desired value (the replaced "-" could be a clue that this is a known issue).
3. Enter your "Max. Value", save and close the BO.
4. Open the BO again and notice the range is gone.
v8.1 on Windows 10 / MySQL 5.6 (local), v8.1 on Windows Server 2016 / MySQL 5.6 (server)
aware_support
Posts: 7299
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Negative numbers not showing in forms

Post by aware_support »

Negative ranges for number attributes problem should be fixed in build 2360
Aware IM Support Team
jannes
Posts: 71
Joined: Tue Jul 02, 2019 12:22 pm

Re: Negative numbers not showing in forms

Post by jannes »

Is this already solved?

I'm facing the same problem.

A negative value is visible in the grid, but not in the (regular) form.

Type : Number
Format : $###,##0.00
Min / max value : empty

When entering min/max value, it disappears after reopening the BO.

Locale : Dutch

How to show a negative value in a form using a currency symbol ?

= Jannes
aware_support
Posts: 7299
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Negative numbers not showing in forms

Post by aware_support »

Do not use the dollar sign as part of the format. Add it to the label instead or display it after the control. In queries use "Display format" to display it. The dollar sign in format could be the cause of the problem
Aware IM Support Team
Post Reply