Preventing duplicate records in form without saving the record [message #159882] |
Wed, 22 February 2006 01:38 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
v1i9kash
Messages: 5 Registered: April 2005
|
Junior Member |
|
|
hi,
I hv some prblem like...
Create table abc(
Roll_no number(3),
Name varchar2(30));
There is no validation/constraint on table.
From form a user wants to inter 10 consequtive record without saving the record at each time he intered the record.What is the logic for preventing duplicate records at entry time.User saves the records after 10records, he entered.
|
|
|
|
Re: Preventing duplicate records in form without saving the record [message #159935 is a reply to message #159882] |
Wed, 22 February 2006 05:24 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
samidc
Messages: 35 Registered: February 2006
|
Member |
|
|
There are two options.
1) In a pre-insert trigger select count for that value . if value exists then raise form trigger failure and pop up message that Duplicate value exists
else
insert_record.
2) Second option is set property of item ( the one which you not want to be as a duplicate) as a primary key .
Thanks
SaMiR
|
|
|
|
|
|