Hello everyone,
I have a table where each messages with the translation is stored.
This table also have 2 other fields, one for the type of the message (Error, confirmation, information) and one for the buttons to display (1 = ok, 2 = yes, 3 = no, 4 = cancel, 3 of the 4 can be combined).
In forms 6i it works perfectly.
The correct alert is found
All the labels are set to null then modified accordingly to the table.
The message of the alert is changed and the alert is displayed.
Alert_id := Find_Alert ('STOP');
SET_ALERT_BUTTON_PROPERTY (Alert_id, ALERT_BUTTON1, LABEL, NULL);
SET_ALERT_BUTTON_PROPERTY (Alert_id, ALERT_BUTTON2, LABEL, NULL);
SET_ALERT_BUTTON_PROPERTY (Alert_id, ALERT_BUTTON3, LABEL, NULL);
SET_ALERT_BUTTON_PROPERTY (Alert_id, ALERT_BUTTON1, LABEL, 'OK1');
SET_ALERT_PROPERTY (Alert_id, ALERT_MESSAGE_TEXT, Lib);
Ret := SHOW_ALERT (Alert_id);
But in Forms 12c (12.2.1.3), it doesn't work.
My "stop" alert didn't have initial value for the buttons, and only one button with a point as label was displayed.
I tried to add initial value and now they are displayed, but my set_alert_button_property is totally forgotten.
Do you have any idea with the SET_ALERT_BUTTON_PROPERTY is not working ?