Databases Reference
In-Depth Information
9.
To test the new function and see what happens when no validations occur
on the date item, run Page 10 and click the To Date input element. Enter
abc, as shown in Figure 3-36.
Figure 3-36. Invalid to date
10. Clicking the Submit button will trigger the page process to run. You will
get an error like Figure 3-37 rather than a user-friendly error.
Figure 3-37. Invalid date error message
Going back to the plug-in requirements, there are two different validations that must occur:
Back-end validation that dates are valid dates (if “execute validations” is set to yes)
Back-end validation that the from date is less than or equal to the to date
The first step to creating a validation function is to get the validation function header and modify
the package specification (pks) file. To get the validation function header, do the following:
1.
Edit the From/To Date Picker plug-in.
 
Search WWH ::




Custom Search