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!

how to define url in apex.navigation.redirect()

Jian-cdoAug 29 2016 — edited Aug 30 2016

Hello,

On my page 16 (A modal dialog), there is a dynamic action ( of a button) that calls Javascript to redirect to another modal dialog page 14 (seems I can't close the current dialog window first and then open another one, so use Redirect()), when I call apex.navigation.redirect(urlLink), it complains as shown in the snapshot. The urlLink works fine if I change the pages to Normal and call window.location=urlLink (but I do need a modal dialog for user). Could anyone let me know how to call this function correctly? Thanks very much!

pastedImage_0.png

The function is:

function GotoP14() {       

    var StudySiteID= $("#P16\_STUDY\_SITE\_ID").val();

    var StudyID= $("#P16\_STUDY\_ID").val();

    var FacilityID= $("#P16\_CHOOSE\_FACILITY").val();

    var FacilityName= $("#P16\_FACILITY\_NAME").val();

    var urlLink='f?p=&APP\_ID.:14:&APP\_SESSION.::NO::P14\_STUDY\_SITE\_ID,P14\_STUDY\_ID,P14\_MASTER\_FACILITY\_ID,P14\_FACILITY\_NAME:' + StudySiteID + ',' + StudyID+ ',' + FacilityID+ ',' + FacilityName;

   apex.navigation.redirect(urlLink);

// window.location = urlLink;

}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 27 2016
Added on Aug 29 2016
6 comments
19,318 views