Thanks for you response.
Of course, that is our backup plan in this case, although I'll likely include a custom regular expression in the attribute's definition, to ensure better data integrity. I’ve been working on a rather long RegExp that will capture most invalid dates, though not all, it isn’t perfect. How do you write a RegExp that checks for 31 days in Jan, Mar, etc.. and for leap years days in Feb?
“As a matter of procedure” doesn’t really hold up in terms of solid data integrity, users will always make mistakes or neglect to follow proper procedures, which is why I like to avoid all possibilities for improper data entry.
Using the calendar control is ideal for data integrity, so I would hope that eventually this could be fixed. Since the ComponentArt calendar control being used in DMX supports dates up to 12/31/9998 I don’t see that as being an issue long term.
We were hoping to write some custom SQL code to query these dates and provide reports to users when a certain threshold was met, kind of like an expiry date or renewal date for the document, though obviously the dates past 2030 won’t come into play for some time. Because of this I’ll have to write some additional SQL code to validate that these values conform to proper dates.
I certainly do hope there is a plan to add the MaxDate and MinDate as properties of the date type custom atrribute, so we can one day use the calendar, as it is a very slick feature, and works quite well to sell the DMX system to users.
The real unfortunate matter is I had already “sold” the system to our internal client, our Legal department, as having this calendar functionality, so it means I’m coming up short on a commitment to them. Though I understand it’s my responsibility to confirm all requirements, I wrongfully assumed this calendar control would handle a large range of dates, though testing for dates past 2030 seems as absurd as testing if the string control could store the “p” character.
In either case, adding the following lines to the Page_Init(), Page_Load(), or New() functions within the file Controls\SelectDate.asc.vb will provide a workaround for the situation and allow for a wider range of dates to be used. If something like this could be include in the next release, we would be very grateful.
MaxDate = ComponentArt.Web.UI.Calendar.MaxDateTime MinDate = ComponentArt.Web.UI.Calendar.MinDateTime
Thanks again!
|