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!

Interactive Grid validation

Staš ČarfNov 15 2024

I am trying to validate two date columns in interactive grid with Javascript and use of DA.

I am currently "stuck" at a point where the code works, but it also doesn't. What it's supposed to do, is to check two date columns if the e.g. departure date is later than arrival date. If the departure date is earlier than arrival date, then it should return an error that the date is incorrect.

Now I can freely pick an incorrect departure date and save it, but when I go and edit the departure date and change the date, that's when the error pops up. I think there's an issue with validation because in the console I can see that the function is being called but the log for checking record only registers arrival date being picked but not departure, where the validation should be made.

I have the Javascript code on the Page Javascript section and the DA is set to change-column and the column is departure. In the true action I have a Javascript expression that calls the validation function.

How could I fix that or does anyone know, where/what could the problem be?

Comments
Post Details
Added on Nov 15 2024
19 comments
1,514 views