problem of message do you want to save changes ... when I press on button that make execute query [message #678880] |
Sun, 19 January 2020 16:25 |
|
Oraclinho
Messages: 9 Registered: December 2018
|
Junior Member |
|
|
when I execute query through button in menu to form ...
this message appeared ... message do you want to save changes?
I want to forbid this message from appearing and execute query without it ... what is the reason of appearing it?
this is code of key exit trigger:
DECLARE
V_EXIT ALERT:=FIND_ALERT('EXIT');
V_NEXIT NUMBER;
V_SAVE ALERT:=FIND_ALERT('SAVE');
V_NSAVE NUMBER;
BEGIN
IF :SYSTEM.FORM_STATUS='CHANGED' THEN
V_NSAVE:=SHOW_ALERT(V_SAVE);
IF V_NSAVE = ALERT_BUTTON1 THEN
:SYSTEM.MESSAGE_LEVEL:=20;
COMMIT;
EXIT_FORM(NO_VALIDATE);
ELSIF V_NSAVE = ALERT_BUTTON2 THEN
EXIT_FORM(NO_VALIDATE);
ELSE
NULL;
END IF;
ELSE
V_NEXIT:=SHOW_ALERT(V_EXIT);
IF V_NEXIT= ALERT_BUTTON1 THEN
EXIT_FORM(NO_VALIDATE);
ELSE
NULL;
END IF;
END IF;
END;
how can I forbid it from showing??
any help, please ...
|
|
|
|
|