Alert :-
1. This is used to display message to the user to confirm any action.
2. use show_alert to show the alert at run time.
3. the above function returns the following values (number()
88 alert_button1
89 alert_button2
90 alert_button3
4. u can change the following attribute of an alert at run time
(title,message,label of button)
Steps for creating a alert.
1. create an alert in object navigator through + command
2. make changed in the property of alert as per requirement.
3. now show the alert at run time using show_alert.
Code for ‘Key-delrec’ trigger at form level ( name of alert is alert_confirm)
Declare
Alt_ret_val numbers;
Begin
Set_alert_property ( ‘alert_confirm’, TITLE,’Confirming Delete Action’);
Set_alert_property ( ‘alert_confirm’,Alert_message_text,’Sure to delete this record ?? ‘);
Set_alert_button_property(‘alert_confirm’,alert_button,label,’plz delete’);
Alert_ret_val := show_alert(‘alert_confirm’);
If alert_ret_val := alert_button1 then delete_record;
Else
Message(‘you cance the operation’);
Message(‘’);
End if;
End;
Note :-
Max you can have 3 button and min you can have 1 button in an alert.
You can not change no of button at run time.
Code for delte record button is
Do_key(‘delete_record’);
It will make a call to key dec-rec
1. This is used to display message to the user to confirm any action.
2. use show_alert to show the alert at run time.
3. the above function returns the following values (number()
88 alert_button1
89 alert_button2
90 alert_button3
4. u can change the following attribute of an alert at run time
(title,message,label of button)
Steps for creating a alert.
1. create an alert in object navigator through + command
2. make changed in the property of alert as per requirement.
3. now show the alert at run time using show_alert.
Code for ‘Key-delrec’ trigger at form level ( name of alert is alert_confirm)
Declare
Alt_ret_val numbers;
Begin
Set_alert_property ( ‘alert_confirm’, TITLE,’Confirming Delete Action’);
Set_alert_property ( ‘alert_confirm’,Alert_message_text,’Sure to delete this record ?? ‘);
Set_alert_button_property(‘alert_confirm’,alert_button,label,’plz delete’);
Alert_ret_val := show_alert(‘alert_confirm’);
If alert_ret_val := alert_button1 then delete_record;
Else
Message(‘you cance the operation’);
Message(‘’);
End if;
End;
Note :-
Max you can have 3 button and min you can have 1 button in an alert.
You can not change no of button at run time.
Code for delte record button is
Do_key(‘delete_record’);
It will make a call to key dec-rec
hi ankur ihis is gud
ReplyDeleteHave u any oppening in Mavai
Shiv (Oracle ol-sql d2k 6i/10g)
9958722521
ershivprakash@gmail.com
hi this one is good but you can ex plane it is possible more clearly ...
ReplyDeletewhat you want to more understand.
Deleteokei
Ankur Garg
9654606562
hi ankur this is good but not more clear .....
ReplyDelete