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

Display UniqueID in harness of IAC composite application

SA-5168

Summary



How to build a composite application using IAC that contains a harness that passes a UniqueID parameter value and displays it on the screen. That UniqueID parameter value is updated in a data table. The onConfirm event configured in the IAC gadget is not working as expected, based on the PDN Articles for IAC. The incoming property from the web page is accessible within the IAC gadget, but the application cannot communicate back to the web page after confirmation on the IAC gadget. 

Error Messages



Not Applicable


Steps to Reproduce



Not  Applicable


Root Cause



An issue in the custom application code or rules


Resolution



Perform the following local-change for the gadget div generation:

<html>
<head>
<script src="https://community.pega.com/PegaInternetApplicationComposer.js"></script>
<!--Uncomment the line below  to view client logs-->
<!--<script src="https://community.pega.com/PegaInternetApplicationComposerLog.js"></script>-->
<script>
                pega.web.config.gatewayURL = "http://your_server:your_port#/prgateway/PRPCGateway/";
                /* to connect without gateway: pega.web.config.gatewayURL = "http://your_server:your_port#/prgateway/PRPCGateway/"; */
                pega.web.config.systemID = "PRPC63SP1";
                pega.web.config.appName = "abcApp";
                pega.web.config.thread = "STANDARD";
                pega.web.config.encrypt=false;
</script>
</head>
<body style="text-align:center">
<!--Note: The values for UserIdentifier and Password may be assigned dynamically. The values shown here are for a specific user.-->
Testing
<div id="GadgetA"
                style="overflow:auto"
                PegaGadget="GadgetA"
                PegaResize="stretch"
                PegaA="createNewWork"
                PegaA_className="PegaSample-CustomerRequest"
                PegaA_flowName="TestFlow"
                PegaA_model=""
                PegaDefer="false"
                PegaE_onConfirm="onConfirmCallback"
                PegaA_params={UserIdentifier:"[email protected]",Password:"cnVsZXM%3D"}>
                                <script>
                                /*
                var GadgetA = {
                                                actionDefinitions: [  {action: "confirm",target: {type: "_page"
                                                                },
                                                                pageURL: "thanks.html",
        params: {
          Status:"Available"
        }      }
                                ]
                };
                */
                </script>
</div>
<script>
function onConfirmCallback(test){
alert("onConfirm "+test);
}
</script>
 
</body>
</html>

 
Related PDN Articles

https://pdn.pega.com/node/135181
https://pdn.pega.com/node/1275
https://pdn.pega.com/node/1296

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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