Cancel Change UI Action not working

SKum
Kilo Sage

Hello Experts,

For some reason OOTB Cancel Change UI Action button is not working when clicked on it opens a dialog box with "page not found error" as below,

find_real_file.png

 

UI Action is as is no changes are done to OOTB script. Not sure why it is not working.

 

Thanks In Advance,

 

1 ACCEPTED SOLUTION

VigneshMC
Mega Sage

OOB cancel ui action calls "change_confirm_cancel" ui page, make sure you have the ui page in your system.

Attaching ui action and ui page xml.

Thanks

View solution in original post

3 REPLIES 3

VigneshMC
Mega Sage

OOB cancel ui action calls "change_confirm_cancel" ui page, make sure you have the ui page in your system.

Attaching ui action and ui page xml.

Thanks

Anil Lande
Kilo Patron

Please check if this UI page is available in your system:

find_real_file.png

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Ankur Bawiskar
Tera Patron
Tera Patron

@SKum 

when was the last time it worked fine?

Did you recently upgrade?

Can you check this UI page exists in the instance -> change_confirm_cancel

this is the OOB Code for it; compare against your

var changeConfirmCancelDialog;

function loadConfirmDialog() {
    var dialogClass = window.GlideModal ? GlideModal : GlideDialogWindow;
    changeConfirmCancelDialog = new dialogClass("change_confirm_cancel", false, 648, 250);
    changeConfirmCancelDialog.setTitle(new GwtMessage().getMessage("Cancel Change Request"));
    changeConfirmCancelDialog.render();
}

function moveToCancel(notes) {
    g_form.setValue("state", "4");
    g_form.setValue("work_notes", notes);
    changeConfirmCancelDialog.destroy();
    gsftSubmit(null, g_form.getFormElement(), "state_model_move_to_canceled");
}

if (typeof window == 'undefined')
   setRedirect();

function setRedirect() {
    current.update();
    action.setRedirectURL(current);
}

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader