UI Action on sysapproval_approver to View Users Responses of a TPRM Internal Assessment

patricial
Tera Contributor

I need to be able to provide Approvers with a way to View the Responses on a TPRM Internal Assessment Questionnaire before they approve the record.

The UI Action is on the approval table.

This is the Workspace Client Script and the UI Button is on the Record when the approver opens the approval record from the workspace.

 

 

 

function onClick(g_form) {
    var grs = new GlideRecord('sn_vdr_risk_asmt_internal_assessment');
    grs.addQuery('sys_id', g_form.getValue('sysapproval.sys_id'));
    grs.query();
    if (grs.next()) {
        gs.info("Approval For SYSID " + grs.sys_id);
        var id = grs.sys_id;
    }
    var gra = new GlideRecord('asmt_assessment_instance');
    gra.addQuery('vdr_tiering_assessment', grs.sys_id);
    gra.query();
    if (gra.next()) {
        gs.info("ASSESSMENT FOR SYSAPPROVAL RECORD " + gra.metric_type);
        var type = gra.metric_type;
    }
   var url = 'assessment_take2.do?sysparm_assessable_sysid=' + id + '&sysparm_assessable_type=' + type + '&sysparm_reader_view=true';

    g_modal.showFrame({
        title: getMessage("User's Response"),
        url: url,
        size: 'fw',
        autoCloseOn: 'URL_CHANGED',
    });
}

 

 

patricial_0-1741193154666.png

 

When I click on the UI Action it does open the modal but nothing shows except this

patricial_1-1741193237510.png

Any help would be much appreciated.

Basically I need to provide a way for the Approvers to view what they are approving in more detail.

The Approval Summarizer works in Classic UI but does not seem to work in Workspace.

I tried that first.

Thank you

Tricia

0 REPLIES 0