Hello All,
Apex: 24.2.2
RDBMS: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0
Oracle Applications: 12.2.10
I have a simple Radio Group that has static values, No/Yes.
I set the default to ‘Yes’ when the page loads.
If the user changes the Radio Group to ‘No’ I have a dynamic action that fires a pop the message ‘Are you sure you want to make this change, blah, blah…'
If the users clicks ‘OK’ the value will remain as ‘No’ but if the users clicks ‘Cancel’ I need to set the value BACK to Yes (the default).
I've gotten close with the below javascript on the DA. It's changes the values as it should, but the popup window stays stuck open and will not close!
What's the best way to do this simple task, either getting the below javascript to set the value and close the pop up or via some other method. This can't be that tricky!
Thanks in advance.
apex.message.confirm(
"Are you sure you want to proceed?", // The message to display
function(okPressed) {
if (okPressed) {
$s('P4_VALIDATION_MODE', 'N',true);
} else {
$s('P4_VALIDATION_MODE', 'Y',true);
}
}
);