Support Article
Java script error while opening attachment from adjustment tab
SA-9083
Summary
Receive a javascript error when attaching documents in Smart Investigate.
Error Messages
'pega' is undefined
Steps to Reproduce
Opening an HMI attachment from adjustment tab throwing java script errors.
Root Cause
Developers are showing an html rule using show-html method of activity. This html rule has a section included.The section that is included in the html here will have components(Grid in this case) that bring along some javascript files(pzPega_ui_grid in this case). These js files use some pega namespaces that are initialised in several other js files which get included in every harness. This html should also include those js files.
Resolution
local change was provided as to include "WorkFormStandard" in the head of the HTML rule.
Published June 12, 2015 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.