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!

Oracle apex apex.navigation.redirect function not able to replace the item values properly when passing the values

Hi All

I am using Oracle apex apex.navigation.redirect function to navigate from a dynamic action once all the processing is complete from the page.

var requestNumber = apex.item('P7_REQUEST_NUMBER').getValue();

if(requestNumber){
apex.message.showPageSuccess("Request submitted successfully.Request Number : " + requestNumber);

// Wait a bit so user sees the message, then redirect
setTimeout(function () {
var url = "f?p=&APP_ID.:10:&SESSION.::NO:RP:P10_REQUEST_NUMBER:" + encodeURIComponent(requestNumber);
console.log(url);
//apex.navigation.redirect(url);
/*apex.navigation.redirect(
"f?p=&APP_ID.:10:&SESSION.::NO:RP:P10_REQUEST_NUMBER:" + requestNumber
);*/
}, 1200);

}

The issue is the value of requestNumber is appended at the end of the url

/rest/r/sl_apex/myapp/view-request?p10_request_number=&session=12970456022999REQ123

while if it can be generated like it will fix my issue

/rest/r/sl_apex/myapp/view-request?p10_request_number=REQ123&session=12970456022999

with navigate function I am not able to achieve this.

can someone guide what to be fixed in this?

Regards,

Anchal

This post has been answered by Anchal Srivastava on Dec 16 2025
Jump to Answer
Comments
Post Details
Added on Dec 15 2025
2 comments
5,636 views