---
title: "Comment by Eric Sacramento on \"Oracle APEX - Returning Values from Modal Dialogs\" | Hashnode"
description: "Great job. On my side, when I have a modal with a parent, I always set the &quot;Dialog Closed&quot; event within the report region. It will always work to upda"
url: "https://hashnode.com/posts/apex-returning-values-from-modals/64131f81cc034597ceb64430/comment/6413320ea22636ad25b2631e"
---

[Discussion](https://hashnode.com/posts/apex-returning-values-from-modals/64131f81cc034597ceb64430)

Comment [Oracle APEX - Returning Values from Modal Dialogs](https://hashnode.com/posts/apex-returning-values-from-modals/64131f81cc034597ceb64430)

[Eric Sacramento](https://hashnode.com/@ericsacramento)

[Mar 16, 2023](https://hashnode.com/posts/apex-returning-values-from-modals/64131f81cc034597ceb64430/comment/6413320ea22636ad25b2631e)

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".

[Jon Dixon](https://hashnode.com/@orclapex)

[Mar 17, 2023](https://hashnode.com/posts/apex-returning-values-from-modals/64131f81cc034597ceb64430/comment/6413320ea22636ad25b2631e#reply-641472c9aeaf57bb77b1566c)

Thanks for the insight Eric.
