|
Re: trigger gailure [message #224599 is a reply to message #224562] |
Wed, 14 March 2007 13:43 |
Frank
Messages: 7901 Registered: March 2000
|
Senior Member |
|
|
rajat_chaudhary wrote on Wed, 14 March 2007 18:14 | hi everyone
....
please give me reply i am waiting
|
eeh, hi?
I don't understand what it is you are asking for.
Please explain in simple words your current situation and your required situation.
And please use punctuation (commas, full stops, capitals etc.), it makes your post better readable and easier to understand.
|
|
|
|
Re: trigger gailure [message #224853 is a reply to message #224839] |
Thu, 15 March 2007 13:58 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Assume that
alert_button1 = OK
alert_button2 = Cancel
Now a little bit of untested code (I'm not in the mood at the moment, but - if you don't have anything better - try it):
DECLARE
alert_btn NUMBER;
BEGIN
...
IF alert_btn = alert_button2
THEN
CLEAR_ITEM;
END IF;
END;
In another words: don't check <OK> because you'd go to the next item anyway. If the user presses <Cancel>, clear the current item.
NEXT_ITEM is a restricted procedure and can not be used in the WHEN-VALIDATE-ITEM trigger, so - forget about it. Navigation is to be done elsewhere.
|
|
|