Question

2
Replies
1036
Views
AlexeyK6 Member since 2016 8 posts
CJSC i-teco
Posted: January 24, 2017
Last activity: April 19, 2017
Closed
Solved

how to currenly(7.2.1) create web mash up gadget without IAC(any gateway) to display portal

Hi. im generate gadget in my case


<script src ='http://pegaServer:9080/prweb?pyActivity=pzIncludeMashupScripts'></script>

<script>
function onLoadFunc(sID) {
console.log("test");
pega.web.api.doAction("PegaGadget", "getGadgetInfo");
return true;
}
</script>
<div data-pega-gadgetname ='PegaGadget' 
data-pega-action ='createNewWork' 
data-pega-action-param-classname ='NRC-FW-RPCRFW-Work-ReinsuranceProposal' 
data-pega-action-param-flowname ='pyStartCase' 
data-pega-action-param-model ='' 
data-pega-isdeferloaded ='false' 
data-pega-applicationname ='RPCRFW' 
data-pega-threadname ='STANDARD' 
data-pega-systemid ='pega'
data-pega-resizetype ='stretch'

data-pega-event-onload = 'onLoadFunc'
data-pega-url ='http://pegaServer:9080/prweb' ></div>

start with im have error
and any java api request comand did not give result (pega.web.api.doAction("PegaGadget","getGadgetInfo"), pega.web.api.doAction("PegaGadget","print"))

only set command (refresh) working.

but im nead display portal? my not working code

<div id="PegaGadget" style="overflow:auto;width:100%;height:100%;"
data-pega-gadgetname ='PegaGadget'
data-pega-action ='display'
data-pega-classname ='Data-Portal-RPCR'
data-pega-Harnessname='RPCRCaseManagerPortal'
data-pega-applicationname ='RPCRFW'
data-pega-threadname ='STANDARD'
data-pega-systemid ='default'
data-pega-url ='http://pegaServer:9080/prweb' >
</div>

and my work old version(7.2) code

<!doctype html>
<html>
<head>
<script src="PegaInternetApplicationComposer.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script>
pega.web.config.gatewayURL="http://pegaServer:9080/prweb/"; //YOUR PRPC SERVER GOES HERE
pega.web.config.appName="RPCRFW";
pega.web.config.systemID="default";
pega.web.config.thread="STANDARD";
pega.web.config.encrypt=false;
</script>
<head>
<body>
<div id="PegaSample" style="overflow:auto;width:100%;height:500px;"
PegaGadget="PegaA"
PegaA="display"
PegaA_harnessName = "RPCRCaseManagerPortal"
PegaA_className = "Data-Portal-RPCR"
>
</div>
</body
</html>
Data Integration
Moderation Team has archived post
Share this page LinkedIn