Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Prevent Insert

Status
Not open for further replies.

AOT

Programmer
Nov 14, 2002
2
AU
I'm an absolute Oracle novice but I'm designing a simple DB for Uni. I have a form which shows existing records on a single record basis. I've prevented insert at the data block level but included a 'New' button which changes the block's allow insert property and pre-defines a code into a read only field.

I have a post_block trigger which returns the allow insert to false for the block but I can't stop user's from navigating (arrow keys) to another new record once they've clicked the 'New' button. This causes my code to fail.

All I want to do is keep them on the current record until they click the 'Save' button.

Can anyone please help?

Regards AOT
 

Why not define the block as Insertable ? Obviously insert is always allowed when
pressing the New button.

You can assign the pre-defined value in the When-Create-Record trigger.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top