Great article. I really enjoy the articles you provide. Also, I have been trying to figure out how to return values from a modal popup page into the interactive grid line values. Do you have any insight on how that could be accomplished? That would be a great article piggybacking on this subject. Thanks, Tom
Great job. On my side, when I have a modal with a parent, I always set the "Dialog Closed" event within the report region. It will always work to update/create/delete. There's another case when the Modal comes from a button/link on the Navigation Menu or "Right/Left side Column" Page Template. For that you need to set the Selection Type to JavaScript Expression: "window" and then on "Client-side-conditon" "this.data.dialogPageId == MODAL-PAGE-NUMBER".
Your article is great. Appreciate it that! Currently, I have an issue of keeping all fields' value due to the whole page reload which clears all fields' value after getting a value from Modal pop-up. The modal page contains PL/SQL table which has emplid with other fields and emplid is the link which allows user to click and passing the value to the parent page where has emplid field. After click the emplid link from the modal pop up page, the modal pop is closed and the value of emplid got passed correctIy, but all fields' value on parent page got wiped out during the reload of the browser. I was searching a solution for fixing this bug for at least 6 months and could not find a solution at all. The code for the dynamic action/Execute Javascript Code when the dropdown men item got changed which is in the parent page. function goto_modal_GrievedDropDownListChange(){ var url = "f?p=&APP_ID.:17:&SESSION."; var l = ("javascript:apex.navigation.dialog('f?p=&APP_ID.:17:&SESSION.").length; var f = url.slice(0,l)+url.slice(l); f = f.replace(":::::",":"); window.location.href = f; }
var GrvedValue = $('#P4_LAB1_GRIEVED').find('option:selected').text();
if(GrvedValue ==='Y'){ alert($('#P4_LAB1_GRIEVED').find('option:selected').val()); goto_modal_GrievedDropDownListChange(); } else{ $('#P4_LAB1_GRV_NBR').val();
}
The code for Modal page is: PL/SQL select statement and the emplid column type is Link which targets to the parent page number.
I have tried many ways to put return false or e.preventDefault() to the parent page which are all failed. At this appoint I really don't know how to prevent clearing out the values for all fields on parent page after closing the modal pop-up page.
Is it possible to get a tip from your professional experience to tell me how to prevent clearing out the values for all fields on parent page after closing the modal pop-up page?
Any responses would be greatly appreciated!