Skip to Main Content

Java Development Tools

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!

Why is my EO Validation method don't show error message?

GadoFeb 5 2017 — edited Feb 6 2017

Hello experts,

I'm using JDev 11.1.1.7.0

This thread is based on a series of implementations that started with :

How to update detail table cascaded LOV when the Master table's LOV changes?

The Idea was to update rows In the detail table "VendorPrices" when the "MesureId" attribute changes in the master table "Products".

@"Timo" suggested to use an end of valid date (like it's used for history columns) which i already have so i decided to use a flag column instead.

Now The Only thing left was to add a validation to the detail table so we don't end up with duplicate valid vendorPrices.

Which lead us to:

EO Validation rule NotIn Query Result Backfires.

Now we are here**.**

In the detail table EO I added a validation method to prevent the user from inserting a row with values that exist in another custom VO that i created.

The custom VO "MyVendProdValidator" uses this query:

SELECT VENDOR_ID ,PROD_ID

FROM VENDOR_PRODUCTS VP

WHERE

VENDOR_ID = :P_VendId AND

PROD_ID = :P_ProdId AND

IS_VALID = 0

Now when i open my app the first view that shows is ProductsView ... i choose a product from the table and then click Edit that navigates to productNew.

When try to insert a new row with a value that exists and click save the validation works and shows a message preventing me from saving until i correct the value and choose one that doesn't exist.

Now the problem is when i correct the value and click save it navigates to the ProductView as it should.

But when i choose a product again and insert the wrong value it doesn't show the message and navigates to the ProductView as if nothing happened.

The record doesn't get commited in the database but it don't let the user know that this happened which i think makes the validation partially useless.

This view is a part of a task flow:

pastedImage_1.png

This is the message (Is this how it should look like??):

validation message.jpg

So any ideas how to fix this?

Thanks for your time.

Gado

This post has been answered by Gado on Feb 6 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 6 2017
Added on Feb 5 2017
10 comments
615 views