Last active
January 3, 2018 07:00
-
-
Save bokks/c645540f1227c4b819e53fa4793e6ddd to your computer and use it in GitHub Desktop.
This is a mashup loading a dynamic content using openWorkByHandle action.Copy the code below and paste into http://phpfiddle.org/deposit/widget001.php and run it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
<div> Open Work Example </div> | |
<?php | |
$workid = "MYORGB7U7Z-UPLUSFINANCIAL-WORK S-45"; | |
$classname = "MYORGB7U7Z-UPLUSFINANCIAL-WORK"; | |
/* In a production scenario, this id would be retrieved dynamically maybe from a rest service which takes in a few input search | |
parameters and returns the id, like get me the id of the loan application of ApplicantName = xxx | |
*/ | |
?> | |
<script src ='https://te8287.pega.com/prweb?pyActivity=pzIncludeMashupScripts'></script> | |
<div data-pega-gadgetname ='PegaGadget' | |
data-pega-action ='openWorkByHandle' | |
data-pega-action-param-key ='<?php echo($workid) ?>' | |
data-pega-action-param-classname ='<?php echo($classname) ?>' | |
data-pega-isdeferloaded ='false' | |
data-pega-applicationname ='UPlusFinancial' | |
data-pega-threadname ='STANDARD' | |
data-pega-systemid ='pega' | |
data-pega-resizetype ='stretch' | |
data-pega-url ='https://te8287.pega.com/prweb' | |
data-pega-redirectguests ='true' | |
data-pega-action-param-parameters={UserIdentifier:'cnwuser',Password:btoa('rules')}></div> | |
</body> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment