Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Decimal comma & nuDebug() Entries

Questions related to using nuBuilder Forte.
ahernandez
Posts: 49
Joined: Thu May 03, 2018 12:08 pm

Decimal comma & nuDebug() Entries

Unread post by ahernandez »

Hi everybody,

Two questions...

I have got a problem typing in a nuNumber field type. I have defined nuNumber as "€ 1.000,00" format, but when I try to enter a decimal number typing a comma it doesn't work. Just typing . as decimal point it works.

Could you help me ?

And the second one..

I have a huge nuDebug() log and when I try to delete it doesn't work. Is easy for me delete records in the table, but I don't know where are de entries of each nuDebug log.

Thanks.
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: Decimal comma & nuDebug() Entries

Unread post by toms »

ahernandez wrote:Hi everybody,And the second one..

I have a huge nuDebug() log and when I try to delete it doesn't work. Is easy for me delete records in the table, but I don't know where are de entries of each nuDebug log.

Thanks.
So you click the "Delete All" button and the entries are not deleted then?
Run this query on your database to delete all debug entries.

Code: Select all

DELETE FROM zzzzsys_debug
Regarding your other question: This is something Steven should be looking at.
ahernandez
Posts: 49
Joined: Thu May 03, 2018 12:08 pm

Re: Decimal comma & nuDebug() Entries

Unread post by ahernandez »

Done toms. Logs deleted and now works fine. Thank you.

Any idea about decimal comma?
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: Decimal comma & nuDebug() Entries

Unread post by toms »

Numbers with comma as decimal separator are not accepted because of this check:
number.png
You do not have the required permissions to view the files attached to this post.
ahernandez
Posts: 49
Joined: Thu May 03, 2018 12:08 pm

Re: Decimal comma & nuDebug() Entries

Unread post by ahernandez »

Sorry toms,

I am pretty new with php and I don't understand this code.
Does that mean there is no solution?

Thank you.
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: Decimal comma & nuDebug() Entries

Unread post by toms »

Actually, this info is for the admin so that he can see why the problem exists. I am sure that a solution can be found.
ahernandez
Posts: 49
Joined: Thu May 03, 2018 12:08 pm

Re: Decimal comma & nuDebug() Entries

Unread post by ahernandez »

Thank you toms.
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: Decimal comma & nuDebug() Entries

Unread post by toms »

At least you can still enter a number with a decimal point and it will be formatted correctly.

Workaround, until it's fixed:
This will replace the comma with a decimal point before the formatting is taking place.

Code: Select all

$('#yourfieldid').attr('onchange','').on('blur', function(event) {
    $(this).val($(this).val().replace(',','.'));
    nuChange(event);
});
E.g. you enter: 12345,4
It will be turned into : € 12.345,40
Last edited by Anonymous on Fri May 25, 2018 12:09 pm, edited 1 time in total.
ahernandez
Posts: 49
Joined: Thu May 03, 2018 12:08 pm

Re: Decimal comma & nuDebug() Entries

Unread post by ahernandez »

Great idea!!

Thank you very much toms!!
ahernandez
Posts: 49
Joined: Thu May 03, 2018 12:08 pm

Re: Decimal comma & nuDebug() Entries

Unread post by ahernandez »

But...

I can't do it on a Subform...

I can't insert JavaScript code. isn't it?
Post Reply