Welcome, Guest
Username: Password: Remember me

TOPIC: Decimal config popup not playing nice

Decimal config popup not playing nice 13 Jul 2016 00:55 #14219

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 295
  • Thank you received: 41
  • Karma: 21
I have been trying to work with decimals in my current project but the config interface does not want to play with me. I have asked it nicely to be a bit more compliant but I am afraid it doesn't like me at all. Admin, can you ask it for me? Deep down, I'm really not a bad person. :)

Thanks vlemos

BTW: wanted to set 10, 6

The administrator has disabled public write access.

Decimal config popup not playing nice 13 Jul 2016 15:41 #14231

  • organicwebs
  • organicwebs's Avatar
  • Offline
  • Premium Member
  • Chris
  • Posts: 133
  • Thank you received: 21
  • Karma: 4
Hi Vlemos,

It is working for me - I can create a 10, 6 decimal field.

Did you try a clean test project?

BTW - I'm on Win10, Firefox.
Just call me Chris :)
Last Edit: 13 Jul 2016 15:53 by organicwebs.
The administrator has disabled public write access.
The following user(s) said Thank You: vlemos

Decimal config popup not playing nice 13 Jul 2016 15:52 #14233

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 295
  • Thank you received: 41
  • Karma: 21
Hey OrganicWebs

Still not working in new projects, maybe a Firefox thing. . . :(

Thanks alot tho
vlemos
The administrator has disabled public write access.

Decimal config popup not playing nice 13 Jul 2016 16:11 #14234

  • organicwebs
  • organicwebs's Avatar
  • Offline
  • Premium Member
  • Chris
  • Posts: 133
  • Thank you received: 21
  • Karma: 4
Hi Vlemos,

Is your problem here to do with the red boxes and the "incorrect" flag as seen on your image?

Mine is OK regarding that.

Not sure if the validation is working - but I'm not too familiar with using Decimals - more Floats.

Just call me Chris :)
Last Edit: 13 Jul 2016 16:11 by organicwebs.
The administrator has disabled public write access.
The following user(s) said Thank You: vlemos

Decimal config popup not playing nice 13 Jul 2016 16:31 #14235

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 295
  • Thank you received: 41
  • Karma: 21
Yes, I can make some changes but can't save at all. The "incorrect" appears and prevents any saving.

Are you using Firefox?

Thx
The administrator has disabled public write access.

Decimal config popup not playing nice 14 Jul 2016 02:04 #14237

  • organicwebs
  • organicwebs's Avatar
  • Offline
  • Premium Member
  • Chris
  • Posts: 133
  • Thank you received: 21
  • Karma: 4
Yes Firefox 47.0.1 - Win10

Also works for me with Chrome 51.0.2704.103m.

It may seem silly, but perhaps try to enter in the Precision first before the Scale. (Enter the 10 first - and then the 6).

If I do it the other way round (Scale 6 first then Precision 10) - I get the "incorrect" warning. (But it still saves for me).
Just call me Chris :)
The administrator has disabled public write access.
The following user(s) said Thank You: vlemos

Decimal config popup not playing nice 14 Jul 2016 08:55 #14242

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
I will review this very soon, maybe next monday.

Decimal type in JDom (round, padding zeros, ...)
Financial type.
Important bug with floats (same problem than you describe here)
etc..

For me, the decimal declaration works. What says your SQL table declaration ?
Coding is now a piece of cake
The administrator has disabled public write access.

Decimal config popup not playing nice 14 Jul 2016 22:06 #14250

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
For me it is working.

Do you have a javascript error ?

EDIT : You need to fill the 2 entries, or nothing. But not half.
You can see the 10 as a placeholder, but I think if you put 6 as scale, you need to write 10 in the precision (over the placeholder).
Coding is now a piece of cake
Last Edit: 14 Jul 2016 22:08 by admin.
The administrator has disabled public write access.
The following user(s) said Thank You: vlemos

Decimal config popup not playing nice 14 Jul 2016 22:16 #14253

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 295
  • Thank you received: 41
  • Karma: 21
Still not working.
Current environment: Win 7, FF 47.0
The administrator has disabled public write access.

Decimal config popup not playing nice 14 Jul 2016 22:16 #14254

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Javascript error ?
Coding is now a piece of cake
The administrator has disabled public write access.

Decimal config popup not playing nice 14 Jul 2016 22:35 #14255

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 295
  • Thank you received: 41
  • Karma: 21
Ok, you were right, when changing the precision the "Incorrect" warning appears. Only after updating the "scale" does it disappear and the form saves.

Maybe a prefill would be preferable to a placeholder on this interface because if the user changes anything on that form it does not save even if they are happy with "10, 2"

Thanks All for your input on this one, was not intuitive or maybe I need a drink :woohoo:

Chris
k++
The administrator has disabled public write access.
Time to create page: 0.126 seconds

Get Started