Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Decimal comma & nuDebug() Entries
-
- Posts: 49
- Joined: Thu May 03, 2018 12:08 pm
Decimal comma & nuDebug() Entries
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.
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.
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Decimal comma & nuDebug() Entries
So you click the "Delete All" button and the entries are not deleted then?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.
Run this query on your database to delete all debug entries.
Code: Select all
DELETE FROM zzzzsys_debug
-
- Posts: 49
- Joined: Thu May 03, 2018 12:08 pm
Re: Decimal comma & nuDebug() Entries
Done toms. Logs deleted and now works fine. Thank you.
Any idea about decimal comma?
Any idea about decimal comma?
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Decimal comma & nuDebug() Entries
Numbers with comma as decimal separator are not accepted because of this check:
You do not have the required permissions to view the files attached to this post.
-
- Posts: 49
- Joined: Thu May 03, 2018 12:08 pm
Re: Decimal comma & nuDebug() Entries
Sorry toms,
I am pretty new with php and I don't understand this code.
Does that mean there is no solution?
Thank you.
I am pretty new with php and I don't understand this code.
Does that mean there is no solution?
Thank you.
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Decimal comma & nuDebug() Entries
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.
-
- Posts: 49
- Joined: Thu May 03, 2018 12:08 pm
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Decimal comma & nuDebug() Entries
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.
E.g. you enter: 12345,4
It will be turned into : € 12.345,40
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);
});
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.
-
- Posts: 49
- Joined: Thu May 03, 2018 12:08 pm
-
- Posts: 49
- Joined: Thu May 03, 2018 12:08 pm
Re: Decimal comma & nuDebug() Entries
But...
I can't do it on a Subform...
I can't insert JavaScript code. isn't it?
I can't do it on a Subform...
I can't insert JavaScript code. isn't it?