Support Article

JavaScript errors Pega Web Mashup in Polymer component

SA-37079

Summary



Users who need to standardize their Pega Web Mashups to take adavantage of Polymer components for their front-end capabilities cannot do so. They also want to provide Pega user interface elements to their front-end capabilities using Pega Web Mashup.

To comply with the users' enterprise application development standards, Pega Web Mashup needs to work as a Polymer web component.

Attempts to create a Polymer component that contains the Pega Web Mashup caused JavaScript errors.
(The user reporting this problem chose not to submit log files showing the errors.)

Error Messages



Not Provided


Steps to Reproduce



Try to create a Polymer component that contains the Pega Web Mashup using the following sample code:

<link rel="import" href="https://community.pega.com/../bower_components/polymer/polymer.html">
<link rel="import" href="https://community.pega.com/shared-styles.html">
<script src="https://community.pega.com/./webComponentPOC/PegaInternetApplicationComposer.js"></script>
<dom-module id="pega-view1">
<template>
<style include="shared-styles">
:host {
display: block;
padding: 10px;
}
</style>

Polymer({
is: 'pega-view1'
});
</script>
</dom-module>


Root Cause

A defect in Pegasystems' code or rules
The Pega Web Mashup PegaInternetApplicationComposer.js file cannot work with the Polymer shadow DOM.


Resolution



Apply HFix-32503.

Published April 26, 2017 - Updated May 12, 2017


100% found this useful

Have a question? Get answers now.

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