Home » Developer & Programmer » Forms » how to restrict creating new records in details block
how to restrict creating new records in details block [message #87516] Mon, 10 January 2005 23:34 Go to next message
Mohan G
Messages: 36
Registered: August 2004
Member
hello
i need to restrict creation of new record (based on some condition) when the user goes to the next record in block.if all the compulsory fields are entered in the current record then only a new record is to be created.

how to do it ?

i am using data block
Re: how to restrict creating new records in details block [message #87530 is a reply to message #87516] Tue, 11 January 2005 18:15 Go to previous message
ashish
Messages: 107
Registered: December 2000
Senior Member
try this on save button
**********************************
if :a is null then
message('a can not be null');
rase FORM_TRIGGER_FAILURE

elsif :b is null then
message('b can not be null');
rase FORM_TRIGGER_FAILURE

end if;
************************************

or u can also set block prorety as

set_block_porperty('block_name',insert_allowed,property_false);
Previous Topic: Parameter using in LOV
Next Topic: detail grid
Goto Forum:
  


Current Time: Thu Sep 19 15:14:03 CDT 2024