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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disabling items (records)

Status
Not open for further replies.

LimonaM

Programmer
Oct 27, 2004
50
SI
When i'm on some record in my form, how can i disable all others. So i can't click on other records. I always stay in my current record (item) unless i write something into it.

Thanks.
 
One way is making your item a required item. In Pre-Form trigger you can write:

Set_Form_Property('your_module',Defer_Required_Enforcement,Property_True);

It means that you can't move to another record without filling required items but you can move between items within the same record.

---------
You can also use Pre-Record trigger and test there some conditions and if they are not met then use
RAISE Form_Trigger_Failure;
and focus remains in the current item.

I hope this will help you.

Helena
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top