This content has been marked as final. Show 7 replies
Also, I have a show_save_alert procedure which I want to bring up an alert asking the user if they want to save the data or not.
I am a little confused with the coding for multiple button alerts. Is the right procedure:
1) create Program Unit procedure which contains the alert message
2)create the trigger that calls the alert procedure (when-button-pressed)
3)create if, elsif statements to respond to alert_button1 (save), alert_button2 (cancel) ??
There is a lot of information on this but I just can't quite work out what I need to do.
Hi Francois, I tried that too but got no luck.
In the Forms Builder I created an alert with the name show_mandatory_fields_alert, I setthe message and configured it to have 1 button only. I got the same error message.
I then changed the coding of the trigger so it read:
But when I tried to compile I got an error 222 no function with name "show_mandatory_fields_alert" exists in this scope
first create an alert in the alert node of u'r form (say user_alert)
now make the following change in ur code:-
PROCEDURE show_mandatory_fields_alert IS
set_alert_property('user_alert',alert_message_text,'1 or more mandatory fields are empty, please correct');
l_button := show_alert('user_alert');
Manvar, perfect ! I have a smile the size of London Bridge LOL !
So for each alert I need I will have to create similar coding within each procedure ?!
Are you any good with multiple button alerts ? All I need to know now is where to put the code for alert_button1 (save) and alert_button2 (cancel).
Is the code for saving commit_form and the code to cancel null ? I just need to know how to properly assign these to the relevant button press.