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