IBM Support

Javascript Errors in Lotus Notes 8 when sending HTML reports in the body of an e-mail

Troubleshooting


Problem

When viewing HTML reports in the body of an e-mail with the Lotus Notes 8.x e-mail client you see a Javascript error pop-up dialog and Javascript appears in the body of the e-mail.

Symptom

When viewing HTML reports in the body of an e-mail with the Lotus Notes 8.x e-mail client you see a Javascript error pop-up dialog and Javascript like the following appears in the body of the e-mail above the report output.

var gCognosViewerId = "_THIS_"; var sLocation = document.location.search; if (sLocation.match(/cv\.id=([^&?]*)/)) { gCognosViewerId = RegExp.$1; } function getCognosViewer() { var cognosViewer = null; try { cognosViewer = eval("parent.oCV" + gCognosViewerId); } catch(e) { cognosViewer = null; } return cognosViewer; } function onClickEvent(evt) { var cognosViewer = getCognosViewer(); if(cognosViewer != null) { cognosViewer.rvMainWnd.pageClicked(evt); } };
<

The report does display correctly with no Javascript errors when received in Outlook and other e-mail clients

[{"Product":{"code":"SSEP7J","label":"Cognos Business Intelligence"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"10.2.2;10.2.1;10.2;10.1.1;10.1;8.4.1","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Product":{"code":"SS6G84","label":"IBM Cognos Analytics on Cloud"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
13 January 2026

UID

swg21428782