SHOW_ALERT Built-in
Description
Displays the given alert, and returns a numeric value when the operator selects one of three alert buttons.
Syntax
SHOW_ALERT(alert_id Alert); SHOW_ALERT(alert_name VARCHAR2);
Built-in
Type unrestricted function Returns A numeric constant corresponding to the button the operator selected from the alert.
Button mappings are specified in the alert design.
If the operator selects...
Forms Developer returns
Button 1 ALERT_BUTTON1
Button 2 ALERT_BUTTON2
Button 3 ALERT_BUTTON3
Donc il faut tester le retour de la fonction
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| Declare
LN$But PLS_INTEGER ;
Begin
LN$But := Show_Alert ('mon_alerte') ;
If LN$But = ALERT_BUTTON1 Then
-- premier bouton cliqué
...
ElsIf LN$But = ALERT_BUTTON2 Then
-- deuxième bouton cliqué
...
Else
-- troisième bouton cliqué
...
End if ;
...
End; |
Partager