I'm completely new to Oracle Apex and I could use some guidance in understanding the code snippet I came across in a tutorial about app creation. After digging around, I suspect it might be JavaScript, but I'm not entirely certain.
The scenario involves a page and a Modal Dialog. This particular code is intended to refresh the page that the dialog is linked to once the dialog has been closed. Specifically, within the Dialog section of the Modal Dialog, you are instructed to insert the following line under Attributes:
close: function(event, ui) {apex.navigation.dialog.close(true,{dialogPageId:&APP_PAGE_ID.});}
My question is, what does the close:
part signify? I understand that using function(..,..)
defines a function in JavaScript.
In my research, I learned that calling apex.navigation.dialog.close(true) closes a dialog window, yet here the tutorial indicates that the action of closing the dialog originates from the user, so why is this piece of code necessary?
Additionally, I comprehend that &APP_PAGE_ID.
is utilized to retrieve a page's ID in Apex; however, could you clarify the purpose of having dialogPageId:
preceding it?
Visit Tutorial Link