next_record executes When-Validate-Triggers of all items in the block [message #581500] |
Mon, 08 April 2013 06:43 |
|
sasipalarivattom
Messages: 121 Registered: June 2007 Location: Cochin ( INDIA )
|
Senior Member |
|
|
Hi,
In one of my form , there is some code "next_record;" in the key-next-item trigger of one field.
Here before going to next record, it is executing the WHEN-VALIDATE-TRIGGER of all the items in that record.
Is it the default behavior of oracle forms?
Can we override this?
Thanks and Regards,
Sasi.
|
|
|
|
|
Re: next_record executes When-Validate-Triggers of all items in the block [message #581682 is a reply to message #581654] |
Tue, 09 April 2013 18:29 |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
You've missed something out there. If when-validate-item completes successfully the item it belongs to is marked as valid.
The trigger will not fire again unless the item is changed.
So something is changing f1 (even if it's setting it to the value it currently is) after the trigger initially fires.
Find that, fix it and your problem goes away.
|
|
|