Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Comparing two enter dates in APEX validation

AliceFan-OracleJun 8 2015 — edited Jun 8 2015

Hi

I was trying to set up a validation that End Date must be larger than Start Date.

I referred the article here: https://community.oracle.com/thread/2560865

And tried:

Type: Function Returning Error Text

Validation Expression 1

Begin

If to_date(:P12_ENDDATE,'DD-MON-YYYY') < (:P12_STARTDATE,'DD-MON-YYYY') then

Return 'End Date should be greater than Start Date';

Else

Return null;

End if;

End;

However, got error

Error processing validation.

ORA-06550: line 3, column 40: PLS-00412: list of values not allowed as argument to this function or procedure ORA-06550: line 3, column 1: PL/SQL: Statement ignored

Does anyone can help me take a look?

Thank you!!

Alice

validation set up.png

error message of validation.png

This post has been answered by fac586 on Jun 8 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 6 2015
Added on Jun 8 2015
4 comments
3,251 views