Skip to Main Content

Java SE (Java Platform, Standard Edition)

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!

Applet with swings

843807Oct 25 2002 — edited Oct 26 2002
Hi
I developed a applet using swing componets.But it doesn't work.
I used jdk1.3.1 for development.And I am using IE 5.0 and Netscape4.7 browsers.
can any body help me what could be the problem?

thanks

Comments

Timo Hahn
Answer

This should be done in the DB to avoid wrong data in the db. There you can add a check constraint to check if a record matches your criteria the throw a DB error. This error is picked up from the framework and published to the UI.
Another method would be to do this in java. Here you can add a business logic and check the criteria. See
Developing Fusion Web Applications with Oracle Application Development Framework (0 Bytes)Timo

Marked as Answer by User_7TK0D · Sep 2 2022
dvohra21

You can create an Alternate Key Constraint on the EO and then use the UniqueKey Validation to validate the key value at commit time. Detail at https://docs.oracle.com/middleware/12212/adf/develop/GUID-92542726-9FC2-435D-8BAC-F140CB0DC579.htm#ADFFD413

User_7TK0D

@dvohra21
May I ask why my alt keys is null?
image.png

dvohra21

Could be because an Alternate Key is not defined. Is an Alt Key defined? Please refer https://docs.oracle.com/middleware/12212/adf/develop/GUID-631716A4-95D2-41A0-A56B-FB168F5268AA.htm#ADFFD212

User_7TK0D

@dvohra21
Hello, I already added the Alternate Key and selected the UniqueKey Validation. But how can i put validation if the status is NEW/PENDING with same person number and cycle, it will throw an error or else it will insert only if the status is already set to PROCESSED

dvohra21

Since creating an alternate key essentially creates indexing on the table in the database. It will fail if duplicate records are already there**.** To remove duplicates either use advanced find to manually delete or update records or duplicate detection job to delete the record. This usually happens when multiple records exist that have the same combined alternate key in the target system. Run an advanced find for the fields that make up the alternate key on the entity in question and I'm sure you will find duplicate results. Changing the values of one of those duplicate records (across every pair of duplicates) will allow the key to be created once there are no duplicates.

User_7TK0D

@timo-hahn1 @dvohra21
Thanks for your help. I used the method validator for validating the ADF table.

1 - 7
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 23 2002
Added on Oct 25 2002
2 comments
71 views