APEX Training

Monday, 12 May 2008

Limit or Extend a Datepicker in ApEx

I have received a couple of questions per email, similar to this one on limiting the value of a date picker item. That shows this is an issue that needs to be solved from the development team. Whereby this is an easy issue. If you look behind the code, you will se there are one procedure and one view involved. The procedure code is generating a small pop-up window showing a calendar based on the number of the years the view is returning. I managed to get that customized by doing the following:

The downside of this approach is that you need to modify one of the apex views and take care you recreate it after the next update. I still didn't have time to find out why this doesn't work on XE. I will have a look into that issue soon and post the results here.

6 comments:

Anonymous
said...

A minor detail, why did you declare "x" and "y" in the package spec (and not in the body) ? Seems to me these values should be hidden from outside the package, as long as you have your "get_x/y" functions public... ?