answer = (typeof g_approval_form_request != "undefined") && g_approval_form_request == true;

KingSukh
Tera Expert

Does this really return the approver for a request ? It does not seem to work for me. What does work to return an approver for a request RITM ?

11 REPLIES 11

CapaJC
ServiceNow Employee
ServiceNow Employee

I can't answer your 2nd question off the top of my head, but that line of script does *not* return the approver. All it says is if the user is coming from an approval form (where the approval summarizer is setting a global variable "g_approval_form_request"), let the approver see the contents of the thing they're being asked to approve. Even if ACLs don't normally let that user see that thing.


KingSukh
Tera Expert

I don't see it getting set or am i missing something, it is returning undefined in the code when i log the messages. How can i define it in the approval_summarizer ?


This is the generic summarizer
<?xml version="1.0" encoding="utf-8"?>













The macro for the sc_req_item is
<?xml version="1.0" encoding="utf-8"?>










The macro for u_finance is










<?xml version="1.0" encoding="utf-8"?>

Summary of Item being approved:



























$[SP]

${gs.getMessage('Description')}

${gs.getMessage('Price')}

${gs.getMessage('Quantity')}

${gs.getMessage('Total')}



href="sc_req_item.do?sys_id=${task.sys_id}"
onmousemove="popListDiv(event, 'sc_req_item', '${task.sys...

${gs.getMessage('uppercase_view')}




question_help_tag="${smart_description}" sc_req_item="${task.sys_id}"
help_class="${jvar_line_color}"/>
${task.quantity}


Summary of Item being approved:



























$[SP]

${gs.getMessage('Description')}

${gs.getMessage('Price')}

${gs.getMessage('Quantity')}

${gs.getMessage('Total')}



href="sc_req_item.do?sys_id=${task.sys_id}"
onmousemove="popListDiv(event, 'sc_req_item', '${task.sys...

${gs.getMessage('uppercase_view')}




question_help_tag="${smart_description}" sc_req_item="${task.sys_id}"
help_class="${jvar_line_color}"/>
${task.quantity}


KingSukh
Tera Expert

I also want to change the approval summarizer so that it will just display the RITM without having to hover.


Valor1
Giga Guru

[edited]

It looks like you're trying to modify the Approval Summarizer on the REQUEST.

If you want to show the REQUEST ITEM being summarized, you should auto-approve the request, and your problem will be solved.