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!

Redirect to another modal on page render

Scott WesleyJun 12 2018

I'm happy with conditional branching, I think it's great.

But there seems to be occasional time where I would like to branch after some 'before header' processes have executed, and from within a modal page.

ie - open a modal, then have that modal make a decision, redirecting to another modal if true.

The only branch position available is prior to and PL/SQL processes.

pastedImage_8.png

I can work around the problem by

- Using the branch condition to call my page initialisation code, then returning true/false - a little unnatural, but good enough

- Have two conditional buttons on the calling page, condition already calculated - unnecessarily early

- do something with a dynamic action - I'd rather not

But it would be handy to be able to redirect using a mechanism described here I Love APEX: How to redirect to another page using PL/SQL in Apex

htp.init;

owa_util.redirect_url('f?p=&APP_ID.:16:&APP_SESSION.');

apex_application.stop_apex_engine;

Which is now bundled in apex_util.redirect_url

When used within a page modal, I get an error.

Application 102 Dialog page 16 cannot be rendered successfully. Ensure the page template in use on page 16 is of template type "Dialog page", with appropriate JavaScript dialog initialization, dialog closure and dialog cancel code defined.

As John suggested, modals are hard, and maybe there is no answer for this

Branching to Modal

Sven also suggsets there may be the odd requirement for this, but doesn't offer a solution in this case

Is there another PL/SQL solution to this, besides my first described workaround?

I'm currently on 5.1.3.

Scott.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 10 2018
Added on Jun 12 2018
0 comments
837 views