Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • vlemos
  • vlemos's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 295
  • Thank you received: 41
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

Please Log in or Create an account to join the conversation.

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

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 :)
The following user(s) said Thank You: vlemos

Please Log in or Create an account to join the conversation.

Last edit: by organicwebs.

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

  • vlemos
  • vlemos's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 295
  • Thank you received: 41
Hey OrganicWebs

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

Thanks alot tho
vlemos

Please Log in or Create an account to join the conversation.

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

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 :)
The following user(s) said Thank You: vlemos

Please Log in or Create an account to join the conversation.

Last edit: by organicwebs.

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

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

Are you using Firefox?

Thx

Please Log in or Create an account to join the conversation.

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

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 following user(s) said Thank You: vlemos

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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
The following user(s) said Thank You: vlemos

Please Log in or Create an account to join the conversation.

Last edit: by admin.

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

  • vlemos
  • vlemos's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 295
  • Thank you received: 41
Still not working.
Current environment: Win 7, FF 47.0

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Javascript error ?
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

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

  • vlemos
  • vlemos's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 295
  • Thank you received: 41
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++

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.078 seconds

I've evaluated lots of other Joomla Component Dev tools such as Shell Manager (J)enesis Danny's Joomla! 1.5 MVC Component Code Generator Marco's Component Maker and I must admit that I love what I see on your site! Lots of potential... Otherwise Great Job and keep up the good work!!!
Clifton (forum)

Get Started