date is not validating properly
Hi,
I'm trying to validate in the format of 'yyyy-MM-dd'.
It's validating ok if I put letters instead of numbers.
But the problem is if I put '2007-20-01'
There will be no validation error and BIRT changes the date to '2008-08-01'
BIRT thinks I want 20 months so he substract 12 from 20 and put 1 extra year.
I want to validate on up to 12 months and if higher then trow an error like BIRT throws when you put letters instead of numbers.
Thank You all for your suggestions in advance.
Donald
I'm trying to validate in the format of 'yyyy-MM-dd'.
It's validating ok if I put letters instead of numbers.
But the problem is if I put '2007-20-01'
There will be no validation error and BIRT changes the date to '2008-08-01'
BIRT thinks I want 20 months so he substract 12 from 20 and put 1 extra year.
I want to validate on up to 12 months and if higher then trow an error like BIRT throws when you put letters instead of numbers.
Thank You all for your suggestions in advance.
Donald
0
Comments
-
Hi Donleblanc,
You should be able to solve this problem by going into the data parameter's validation script and writing your own validation code for the date parameter. You can get the parameter value with params["parameterName"].value.
Regards,
MichaelWarning No formatter is installed for the format ipb0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 145 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management