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!

Issue with modal popup in apex 5 while using apex.navigation.dialog

Sanjaya Kumar PradhanSep 7 2016 — edited Nov 1 2016

Hi,

I am upgrading an apex application from 4.2 to 5.0. Now it shows an error "popUp2" is undefined. There are more than 250 places popUp2 is used.

Is there any quick way to resolve this issue.

Secondly. In a page I am trying to implement the popup page as below.

1. Following code is written on the HTML Header section of the calling page ( I have replaced the popUp2 call with apex.navigation.dialog as below)

<script>

function process()

{

var answer = confirm("Are you sure to  process ?")

if (answer) {

doSubmit('POPULATE');

    apex.navigation.dialog('f?p=&APP_ID.:100:&SESSION.::::',{width: 935, height: 545, resizable: "Yes"},'a-Dialog--uiDialog');

}

}

</script>

2. The called page 100 (popup) is a modal dialog page.

3. Now on click.. of the button which calls the above method, a popup window shown and immediately closed with following error.

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

Contact your application administrator.

Technical Info (only visible for developers)

is_internal_error: true

apex_error_code: APEX.DIALOG.PAGE.ERROR

component.type: APEX_APPLICATION_PAGES

component.id: 112000010058

component.name: Product Match Process Status

error_backtrace:

----- PL/SQL Call Stack -----

  object      line  object

  handle    number  name

0xd4fda988       643  package body APEX_050000.WWV_FLOW_ERROR

0xd4fda988       711  package body APEX_050000.WWV_FLOW_ERROR

0xd4fda988      1015  package body APEX_050000.WWV_FLOW_ERROR

0xde54ba48      4594  package body APEX_050000.WWV_FLOW

0xd4fcf3b0       173  procedure APEX_050000.F

0xd4addde8        30  anonymous block"

Can anyone suggest. What wrong I am doing here.

Thanks,

Sanjaya

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 29 2016
Added on Sep 7 2016
2 comments
891 views