Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to submit parent page when closing modal dialog (Button X)

sKrDec 4 2015 — edited Dec 23 2015

Hi All.

I'm using APEX 5.

I have a Page1 that contains an apex tree and when one node is clicked it opens a modal Page2 that contains a tabular form where I can update some fields for the selected node, in this page I'm able to generate many changes without closing the page, for example I can add rows, save changes, delete rows, save changes and finally close the modal Page2.

I need to refresh the content of the tree located in Page1 when the Page2 is closed, after some research I noticed that refresh dynamic action doesn't work with trees and I implemented the sample application way using branches from the modal Page2 to the Page1, this causes a submit on Page1 and the tree is refreshed.

Now, my problem occurs when the user closes the Page2 using the top right button of the page (X), because there are no branches from this button that causes a submit on the Page1, the Page2 just closes without refreshing Page1, I tried creating a dynamic action on Page1 tree region that listens for Dialog Close and perform a submit page, but it seems that it never runs.

Please give an idea on how to refresh Page1 when Page2 is closed from the (X) button.

Thanks in advance, regards.

Comments

Great article and project! I have a simple question. When you say:

Non-blocking request processing emerges as an effective way to address the problem. Instead of one blocking thread to handle one request, a small number of threads is used to handle a large number of requests asynchronously. This results in more efficient use of CPUs and better scalability, albeit at the cost of increased complexity.

Would you say then that we should not use server-side non-blocking processing if performance is not an issue? For the applications I work on, load is very predictable and low. It seems to me that in these cases the increased complexity is not worth it. (I contrast this to AJAX. AJAX enables web applications to do more work faster and responsively, but even if your web application has very little work to do, the user experience of AJAX applications is often superior to applications that do not use AJAX due to full page refreshes.)

Antón R. Yuste

Superb article, thanks!

user11017489

Thank you for this beautiful summary.

Re Lai-Oracle

Great article and project! I have a simple question. When you say:

Non-blocking request processing emerges as an effective way to address the problem. Instead of one blocking thread to handle one request, a small number of threads is used to handle a large number of requests asynchronously. This results in more efficient use of CPUs and better scalability, albeit at the cost of increased complexity.

Would you say then that we should not use server-side non-blocking processing if performance is not an issue? For the applications I work on, load is very predictable and low. It seems to me that in these cases the increased complexity is not worth it. (I contrast this to AJAX. AJAX enables web applications to do more work faster and responsively, but even if your web application has very little work to do, the user experience of AJAX applications is often superior to applications that do not use AJAX due to full page refreshes.)

Thank you. And yes, I'd think so. Asynchronous programming is harder to reason about.

lprimak

There is more hype in asynchronous / non-blocking programing than is proven by benchmarks or common sense:

Mohan Basavarajappa

Hi @"Yolande Poirier-Oracle"

informative article contributed. provides information on what all NIO frameworks are available and what is the high-level difference. More over it provides the advancements and where platform is headed. Nice samples too to get kick started with learning.

We are in the process of fixing the code layout. Sorry for the convenience.

Redfred Garett

Excellent article. Really very useful. Thanks !!!

1 - 8
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 20 2016
Added on Dec 4 2015
3 comments
2,397 views