simple help please in restore

I have a button (to go to another block) that contains this code:

declare
alert_id alert;
number of al_but;
Start
If get_block_property ('courses_block', status) = "QUERY" then
go_item ("block1.courses_info");
on the other
alert_id: = find_alert ('alert3');
set_alert_property (alert_id, alert_message_text, 'Do you want to save the changes?');
al_but: = show_alert (alert_id);
If al_but = ALERT_BUTTON1 THEN
commit;
go_block ('block1');
elsif al_but = ALERT_BUTTON2 THEN
Rollback;
commit;
go_block ('block1');
end if;
end if;
end;

When I click on this button and click on no (do not save changes), this message before going to the block one another:
(Do you want to save the changes you made?)

This means for me that the restoration did not correctly executed.

Plase help me do the correct restore.

Thank you

Salah

If you want to 'dismantling' changes made in the forms, you either clear the block or to launch a new query, so instead of using restore, you may do one of the following values:

-- This clears the current block, and details
CLEAR_BLOCK(NO_VALIDATE);

or

-- this clears the whole form inclduing all control-blcoks
CLEAR_FORM(NO_VALIDATE);

Tags: Oracle Development

Similar Questions

Maybe you are looking for

  • L10: hotkey dialog box

    I recently installed McAfee Internet security on my Toshiba L10. Since then every time I start up the laptop I get a box of dialg hotkey 'display a confirmation pending' and the checkbox 'Show a Hibernate implementation'. What is cancel or OK is clic

  • OfficeJet 6500 E710n-z Airprint

    The OfficeJet 6500 E710n-z supports Apple's Airprint feature.  Printer bought in April 2011.  I have a new iOS4.2.7 running of the iPhone4.  The phone detects the printer and allows me to select it as the printing device.  But when I hit the "print"

  • Microsoft offers a discount to students on microsoft products? E.g. Microsoft Surface

    Hello Microsoft would offer a discount to students on Microsoft products/devices? E.g. Microsoft Surface.   If so, what details will I need to purchase. Thank you REDA

  • Dell Latitude Windows 7 - specific wifi has not detected

    My Dell Latitude with Windows 7 installed detects all wifi network except my wifi at home (say 'mwifi') All my other laptop, desktop, handheld can detect and connect to "mwifi". Help, please.

  • Camera does not work on Android 7.0 Nougat

    My LR mobile worked like a charm on my Nexus 6 p Marshmallow running. I've upgraded to the official version of Android 7.0 Nougat and the camera has disappeared.Anyone who has experienced the same thing? Any fixes out there?