Skip to Main Content

SQL & PL/SQL

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 date to sysdate-Dynamic Action

Paul_apex_devJul 19 2016 — edited Jul 20 2016

Hi,

I currently have a dynamic action on a date column with a date picker where if the expiration date is greater than the sysdate, then it sets the value to the status column as either valid or expired.

No value is being input in my status column.

I'm not sure if the selected date is being referenced correctly.

Any help would be greatly appreciated

begin 

if

To_date(:P3_DATE_EXPIRED, 'DD-MON-RR') < trunc(sysdate)

then

return 'Expired';

elsif 

To_date(:P3_DATE_EXPIRED, 'DD-MON-RR') > trunc(sysdate)

then

return 'Valid'; 

end if; 

end;

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 17 2016
Added on Jul 19 2016
7 comments
1,245 views