Date picker validation in APEX 5.0

寵の児 提交于 2019-12-25 14:05:11

问题


I am new to APEX environment and need to know the ways to perform validation on date picker items. On Apex page I have 2 date pickers , start date and end date. Selecting the start and end date I'm able to get the required data on page but need to add some validations in date pickers items, say e.g I need to add validation rules for :

  • Start date should be less than End date
  • Start date should not be greater than sysdate
  • One should not be able to enter invalid date format.

Can anyone please share some good examples and links to add above validations on date picker items on APEX5.0 ?


回答1:


Here you have a good basic tutorial (fist from a series of 4). Chapter 7, Creating Validations, contains validation examples.

For the other 3 tutorials from this series check the Oracle Learning Library




回答2:


You can put the default value for Start Date --> SYSDATE

For the End date, you can make a DA (Dynamic Action) that will take start and disable all dates lower than the one you picked for Start date.



来源:https://stackoverflow.com/questions/32972550/date-picker-validation-in-apex-5-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!