UNIQUE DATA INSERT IN THE FORM

To discuss Oracle Forms & Reports related technical issues.
Post Reply
Shah
Posts: 4
Joined: Thu Oct 12, 2006 4:13 am
Location: Pakistan

UNIQUE DATA INSERT IN THE FORM

Post by Shah »

I INSERT THE NAME IN THE FIELD THAT IS NOT UNIQUE.
I WANT NOT TO SAME DUPLICATE NAMES.
PLZ SEND ME IF ANY PROPERTY IN THE FORM EXISTS OR ANY CODE.
ahmadbilal
Posts: 615
Joined: Mon Sep 18, 2006 1:32 am
Location: United Arab Emirates
Contact:

Post by ahmadbilal »

in form buider apply when_validate_item triger on name text item write code there

select count(name) into v_cnt variable name
from table name
where name = :text item name;

if v_cnt <> 0 then
raise form trigger failure


hope you can understand
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 0 guests