Cancel button When i cancel the RITM its not redirect to REQ page it directly going to XXX_LR_page

rajeshraji1
Tera Contributor

Cancel button : When i cancel the RITM its not redirect to REQ page it directly going to XXX_LR_page for all the RITM cancel 

below code used for this UI action 

function setRITMCancel() {

  g_form.setMandatory("work_notes", true);

  gsftSubmit(null, g_form.getFormElement(), "cancel_ritm");

}

//Code that runs without "onclick"

//Ensure call to server-side function with no browser errors

if (typeof window == "undefined") {

  serverRITMCancel();

}

function serverRITMCancel() {

  current.stage = "Request Cancelled";

  current.state = 4;

  current.update();

}


can any one suggest for redirect to REQ page what i need to apply and share script ???

1 ACCEPTED SOLUTION

palanikumar
Mega Sage

Add the below line after current.update() and see whether it solves your issue:

action.setRedirectURL(current.request);
Thank you,
Palani

View solution in original post

3 REPLIES 3

palanikumar
Mega Sage

Add the below line after current.update() and see whether it solves your issue:

action.setRedirectURL(current.request);
Thank you,
Palani

After apply this like getting error Page not Found and sysid

Hi @palanikumar After current.updae()i have added below code
action.setRedirectURL(current);

 

Its working fine thanks for Answer