Skip to Main Content

Oracle Forms

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!

Need help in checking duplicate records without saving the records into database

piyush9010Mar 2 2016 — edited Mar 4 2016

Hi,

I have requirement to check duplicate values on a multi data-block form before committing the changes.

I have created a table in database level which will save records for the validation.

INSERT INTO check_duplicate (exception_id,

                            EFFECTIVE\_START\_DATE,

                            EFFECTIVE\_END\_DATE,

                            CONTRACT\_NUMBER,

                            VALID\_FROM,

                            VALID\_TO)

    VALUES (:XXCSS\_MCCR\_AD\_CON\_EXCEP\_HDR.exception\_id,

          :XXCSS\_MCCR\_AD\_CON\_EXCEP\_HDR.EFFECTIVE\_START\_DATE,

            :XXCSS\_MCCR\_AD\_CON\_EXCEP\_HDR.EFFECTIVE\_END\_DATE,

            :XXCSS\_MCCR\_AD\_CON\_EXCEP\_DTL.CONTRACT\_NUMBER,

            :XXCSS\_MCCR\_AD\_CON\_EXCEP\_DTL.VALID\_FROM,

            :XXCSS\_MCCR\_AD\_CON\_EXCEP\_DTL.VALID\_TO );

i am not clear about one thing is if i use FORMS_DDL('COMMIT'); will it save the records in those tables also on which the master and detail blocks are created.because i dont want to save those records until they are not perfect.

Pleae find the design of my form

Capture.PNG

Now i have to check that for one contract number there should be only on record.

valid from date and vatlid date should not overlap each other or should not be equal

so i am planning to insert any new record into database and check for duplicates.

Please help me clearing this confusion.

Message was edited by: piyush9010

This post has been answered by piyush9010 on Mar 4 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 1 2016
Added on Mar 2 2016
7 comments
2,830 views