Databases Reference
In-Depth Information
2.
If you try to manually modify the to date to be less than the from date, the
JavaScript code will automatically correct the dates. To work around this,
you'll need to remove the jQuery UI plug-in that is applied to one of the
dates. To do this, open the Console window and run the following code:
$('#P10_FROM_DATE').clarifitFromToDatePicker('destroy');
The output from the Console window (if running the app in debug mode)
should look like Figure 3-42.
Figure 3-42. jQuery UI destroy output
3.
You can now manually modify the from date. Set it to 13/08/2011, as
shown in Figure 3-43.
Figure 3-43. Invalid date range
4.
Click the Submit button. You should now get an error message like Figure
3-37,which checks that the date range is invalid.
Wrapping Up
Now that your plug-in is working properly, there are a few things to do before publishing it for others to
use. If using the plug-in for internal purposes only, you may not need to change anything since you can
reference a corporate web server and PL/SQL packages. These steps are there only if you're planning to
release it publically or cannot guarantee that the APEX application will have access to a specific web
server and PL/SQL packages.
The first step is to move the PL/SQL code from pkg_apress_plugins directly into the plug-in. The
following steps will move the code from the package into the plug-in:
1.
Edit the plug-in.
 
Search WWH ::




Custom Search