Hello!
I am currently trying to set a pop up message for when I create a new entry in a form. I've come so far that the message pops up, but what's bothering me is that over the message I'm getting a loading indicator that completely covers the message so it's hardly visible. The other thing that's even worse and I have no idea how to fix, is that two entries are written in table instead of one. As if I submitted the form twice instead of once. Below is the PL/SQL code for a process and a JS code for DA.
BEGIN
INSERT INTO DEPARTMENT (DEPT_ID, DEPARTMENT_TITLE)
VALUES (DEPT_SEQ.NEXTVAL, :P2_DEPARTMENT_TITLE);
COMMIT;
END;
$(function() {
$("<div>Successfully created a new department!</div>").dialog({
title: "Success",
modal: true,
buttons: {
"OK": function() {
$(this).dialog("close");
}
}
});
});