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
/* In case of RedirectAndRun where the Location parameter is also a URL */ | |
/* Both of them need to be encrypted */ | |
switchMyApps:function(accessGroup) { | |
if (accessGroup == null) { | |
return; | |
} | |
var topWinTmp; | |
var oShowDesktopUrl; |
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
/* This shows how to convert a regular SafeURL to a Dispatcher URL */ | |
/* The normal URL would be like pyActivity=Work-.AttachmentStatus&AttachmentHandle=XXX */ | |
/* When you pass the SafeURL to pega.u.d.convertToRunActivityAction(oSafeURL) , the URL becomes a dispatcher */ | |
/* pyActivity=pzRunActionWrapper&pzActivity=Work-.AttachmentStatus&AttachmentHandle=XXX&pzActivityParams=AttachmentHandle */ | |
/* pzRegisterActivity or long form of registration works only with such Dispatcher URLs */ | |
<script> | |
function CheckAttachmentStatus(LinkHandle,strAttachmentHandle) | |
{ | |
var oSafeURL= new SafeURL("Work-.AttachmentStatus",getReqURI()); |
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
/* Note that this is for Stream rules */ | |
/* Below snippet is a JS function in a control performing a server call */ | |
/* Important Tip | |
Use encryption when you already have code using : | |
httpRequestAsync | |
pega.util.Connect.asyncRequest | |
openWorkByURL | |
openURLInWindow | |
*/ | |
<script> |
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
<%tools.putSaveValue("CAPTION-Task", tools.getLocalizedTextForString("pxRequestor.pyCaption","Task")); | |
tools.putSaveValue("CAPTION-WaitingAt", tools.getLocalizedTextForString("pxRequestor.pyCaption","WaitingAt")); | |
%> | |
/* Original */ | |
<script> | |
function displayFlowLocation(asnKey) | |
{ | |
strURL = strRequestorURIformFlows + "?pyActivity=Work-.GetLocationForAssignment&InsHandle=" + escape(asnKey); | |
openUrlInWindow(strURL,"FlowLocation","status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,left=20,top=20,height=600,width=750"); | |
} |
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
/* This pattern is useful when the url is a literal in the markup */ | |
/* Example 1 */ | |
/* Original */ | |
<td id="navigationTD" nowrap class="textCoverLabel" style="padding:0px 5px 0px 5px"> | |
<a href="<pega:reference name='pxRequestor.pxReqURI' mode='normal' />?pyActivity=Open&Action=Review&HarnessPurpose=Review&AllowInput=false&InsHandle=<%=tools.getStepPage().getInstanceHandle()%>" title="Open this" class="titleBarLink">Open Item</a></td> | |
</td> | |
/* Encryption notice how even dynamic parameters can be encrypted*/ | |
<td id="navigationTD" nowrap class="textCoverLabel" style="padding:0px 5px 0px 5px"> |
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 | |
*/ |
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 Assignment </div> | |
<?php | |
$assignid = "ASSIGN-WORKLIST MYORGB7U7Z-UPLUSFINANCIAL-WORK S-43!GATHERAPPLICANTINFO_FLOW_0"; | |
/* 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 | |
*/ | |
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 = "S-44"; | |
/* 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 | |
*/ | |