CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Validate euro number format

by Davide » 29 Jan 2015 15:49

Hello,
I'm using the following code to validate a money field :
Code: Select all
      
Result := PrimoOrdineEdit.JQValidateOptions.IsValid and (PrimoOrdineEdit.Text > '');
if (not Result) then begin
   PrimoOrdineEdit.JQValidateOptions.Validate();
   PrimoOrdineEdit.SetFocus;
   Exit;
end;


On the PrimoOrdineEdit JQEdit component I enabled the JQValidateOptions with one rule of jqvorvNumber type.
The problem is about validation of European number format (es. 1.520,34) cause the validation routin excpect an english number format.

Is there a way to validate the European numbers ?

Thank you,
Davide

My problem is about the
Davide
 
Posts: 150
Joined: 14 Oct 2013 11:33

by Alexander Bulei » 29 Jan 2015 19:19

Hi Davide,

I presume you will use this validation in many edits, so I suggest you to create the global rule.

Check attached project & js file.

Put the js file in "wwwroot" or any other directory inside wwwroot, and change the path OnCreate.

Also, you have a example of single edit.

Best Regards.
You do not have the required permissions to view the files attached to this post.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by yocko » 11 May 2017 10:47

Is it possible to download those files please. Links are dead now...

TIA
yocko
 
Posts: 28
Joined: 12 Mar 2017 19:27

by Alexander Bulei » 12 May 2017 11:17

Hi yocko,

Unfortunately, we don't have this files anymore....
Maybe the user "Davide" still have and can share it...

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by yocko » 12 May 2017 11:59

Thanks for feed back.

I try to learn as much as possible reading all topics in forum and it helps me a lot. But sadly in many topics pictures are missing (dead links), also many links to examples in different topics are dead too. Also your download section in forum is empty (viewtopic.php?f=12&t=450). I though I will find some additional small examples there...

I am very sure we newbies can benefit from those examples/tutorials, so we will ask you less questions ;)

Have a nice weekend.
yocko
 
Posts: 28
Joined: 12 Mar 2017 19:27


Return to JQEdit

cron

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.