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!

APEX URL parameters

linkuNov 21 2022

Hello
I'm having trouble passing the second parameter in a link that opens a modal page (javascript).In the parameter, the value of the element is passed to the form.It works fine for one parameter but not for two.
Yes, I know that I can use a standard redirect page but not in this case (the modal page is supposed to open only after certain conditions are met)
Code below:
var x = apex.item('P4_DATE').getValue();
var url = "f?p=#APP_ID#:5:#SESSION#::NO:RP,5:P5_DATE_RESERV:#P4_DATE#,:P5_SEAT:1";
url = url.replace("#APP_ID#", $v("pFlowId"));
url = url.replace("#SESSION#", $v("pInstance"));
url = url.replace("#P4_DATE#", x);
apex.server.process("PREPARE_URL", {
x01: url
}, {
success: function(pData) {
if (pData.success === true) {
apex.navigation.redirect(pData.url);
} else {
console.log("FALSE");
}
},
error: function(request, status, error) {
console.log("status---" + status + " error----" + error);
}
});

Comments
Post Details
Added on Nov 21 2022
2 comments
2,035 views