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!

HELP to setup modal dialog page

Andrea MMay 21 2020 — edited May 22 2020

Hi all,

I am new to "modal dialog" pages, and it seems I am not able to use them.

I am using APEX 19.1 on Oracle 12.2

I have a nice IR working fine; I'd like to add a link to show more details in a on-screen popup and I think a modal dialog page is the way.

The "Dialog with Auto Size" example at https://apex.oracle.com/pls/apex/apex_pm/r/ut/page-dialog is what I want to reproduce.

So far, I have

- build an empty "Modal dialog" page. This page has ID=102, page mode = "Modal Dialog", dialog template = "Modal Dialog"

- build links such as the following in the IR

<a href="javascript:apex.navigation.dialog('f?p=106:102:13873478016966' ,{title:'Sample Dialog',height:'480',width:'660',maxWidth:'1000',modal:true,dialog:null});">testmodal</a>

When I click the link a popup appears, but I always get the error

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

And I really cant find out how to fix this.

thanks!

Comments
Post Details
Added on May 21 2020
2 comments
283 views