how to validate primary key fields in forms 6i [message #497373] |
Sat, 05 March 2011 01:16 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/78d3fb0ebd07d3acb1a1fedfa9cff73f?s=64&d=mm&r=g) |
maddyd2k
Messages: 24 Registered: November 2010
|
Junior Member |
|
|
i have a emp block with multiple rows in which col1,col2,col3,col4,col5,col6 are the columns
In emp block col1,col2,col3 are the primary key fields..
i need to validate the primary key columns such that it should not allow duplicates values in the primary key col's with out checking the database values...with out using enforce primary key property
how can i achieve this???
thanks
|
|
|
|
Re: how to validate primary key fields in forms 6i [message #497424 is a reply to message #497419] |
Sat, 05 March 2011 08:46 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](/forum/images/custom_avatars/72104.gif) |
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Your code, Irfan, will check existing values. But, it won't prevent user to enter as many duplicates as he/she wants into the form (because those records don't exist in a table (yet)). However: if you add POST in there, that would be something different.
Maddy: why don't you want to use Forms built-in functionalities?
|
|
|