I'm very new to Oracle Apex and need help understanding this code I got from a tutorial on creating an app. I've searched and I think it's JavaScript but I'm not even sure.
There is a page and there is a Modal Dialog. This code is supposed to refresh the page that the dialog is attached to once the dialog is closed. In the Dialog section of the Modal Dialog, paste the following line in Attributes:
close: function(event, ui) {apex.navigation.dialog.close(true,{dialogPageId:&APP_PAGE_ID.});}
What is the close: part for? I know that function(..,..) declares a function in JavaScript.
I also found that apex.navigation.dialog.close(true) closes a dialog, but in this case the tutorial is saying that the user closed the dialog themselves and we're just detecting it so what's the point of this code?
Finally, I know that &APP_PAGE_ID. is how you get the ID of a page in Apex but what is dialogPageId: written before it for?
