Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Applet can not be identified by "ID" in javascript method

SA-31633

Summary



User has embedded an applet in the portal header in a screen layout. They noticed class loading issues where the classes in the applet are not in scope of the Case. 

User tried embedding the same applet in the Case Perform harness but looks like it is not loading the classes in case thread. 

The application has an embedded applet to provide integration with telephony.

The applet is added part of an Html rule with an <object id=”MyApplet”> </object>. 

User has included this Html in the screen layout header. While invoking an API method from the Case, it is unable to recognize the method call which is invoked using Applet ID: for example, EApplet.methodCall().

 

Error Messages



Not applicable


Steps to Reproduce



Not applicable


Root Cause



By testing the applet in the header, it is successful. The root cause was the Document Object Model (DOM).

Resolution



Perform the following local-change:

Reference the applet as top.document.getElementById(<ID name>).


 

 

Suggest Edit

Published December 24, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us