logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
ctrazzi  
#1 Posted : Thursday, September 21, 2023 10:58:47 AM(UTC)
ctrazzi

Rank: Member

Groups: Registered
Joined: 7/14/2023(UTC)
Posts: 25
Man
Italy
Location: Torino

Thanks: 8 times
Hello, I am having a strange behavor about a custom filter I made to filter some numerical value.

I have a list of value expressed as:

-0,50
-25,75
76,25
600,00
54,30
8,00
-4,00

I have set this data in the following way in the "element" options table and in "Restrictions and Aggregate Restriction" advanced table:
DATA TYPE: Default
FORMAT: Number 2 Decimals (1 234.56)

When I Execute the report I try to insert 0,25 in my custom filter but the comma is automatically deleted, to use it I have to mantain the comma key pressed and delete the excess ones.
The same thing happen with the minus character -, if i need to insert for example -1 I had to perform the same trick or insert first the number then the - in front of it (same for the comma).

I am missing something in the filter/datas configurations?
Thanks in advance.
epf  
#2 Posted : Friday, September 22, 2023 6:36:42 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
Yes, this is a incorrect JavaScript validation that will be removed in the next release.
You can fix this by modifying the common.js file:
Just remove the lines 139-146:
//validation
$(parent + ".numeric_input").keyup(function () {
var v = this.value;
if (!$.isNumeric(v)) {
this.value = this.value.slice(0, -1);
}
});

Note that common.js is located at several places in Reporsitory\Views and in wwwRoot\Scripts

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.