How to get 'Do you want to save changes you have made?' [message #609795] |
Wed, 12 March 2014 08:02 |
|
mist598
Messages: 1195 Registered: February 2013 Location: Hyderabad
|
Senior Member |
|
|
Hi all,
1)I have 2 blocks a)control b)EMP
2)I have only Button in the control Block and Table Block(Base Table) is EMP
if i click on the Button it displays the EMP Window shows the Records, if i update the existing rows and clicked on the save option then i want to show Alerts Like"'Do you want to save changes you have made?'
Code:
BEGIN
Go_block('EMP');
execute_query;
IF :system.form_status = 'changed' THEN
COMMIT;
al_button := Show_alert('SAVE');
IF al_button = alert_button1 THEN
Message('Do you want to save changes you have made?');
END IF;
END IF;
END;
Name; SAVE
Message: Do you want to save changes you have made?
Alert Style: STOP
Button Label1: YES
Button Label2: NO
Button Label3: CANCEL
In the custom form i am not getting any Alerts(By Default) Please help.
If i click on YES Then save the existing row and if NO Then no commit
[Updated on: Wed, 12 March 2014 08:03] Report message to a moderator
|
|
|
|
|
|
|
|
|
|