Question

5
Replies
1179
Views
Deva_Prathapaneni Member since 2014 30 posts
Cognizant
Posted: 1 year ago
Last activity: 1 year 2 months ago
Closed

Launch Portal with new work object using snapstart URL

We have followed steps mentioned below link

https://community1.pega.com/community/product-support/question/creation…

Steps:-

Step 1:

We used the below snapstart URL to invoke a custom activity "LaunchPortal"

http://serverX/prweb/PRServlet?UserIdentifier=userX@companyY.com&Password=cGVnYQ==&pyActivity=SampleClass-Work.New

Application URL:http://serverX/prweb/PRServlet?

Operator ID: UserIdentifier=userX@companyY.com

Password: Password=cGVnYQ== (default, no need to modify)

Activity to be invoked:pyActivity=SampleClass-Work.New (We created a new activity "LaunchPoral" in Data-Portal and used it here)

Step 2:

In the LaunchPortal activity, we called ShowDesktop activity in Step 1 and in Step 2 we set "SnapFlag" Property in pyDisplayHarness page to true.

Step 3:

We then created a new section "LaunchCase" in Data-Portal Class, and unchecked the Auto-Generated HTM check box in HTML tab and entered the below code in HTML Source,

<script>
var testFlag = "<%=tools.findPage("pyDisplayHarness").getProperty(".SnapFlag").getStringValue()%>";
if(testFlag=="true"){
pega.desktop.createNewWork("ClassName",1, "FlowName");
<%tools.findPage("pyDisplayHarness").getProperty(".SnapFlag").setValue("false");%>;

}
</script>

Step 4:

We added the "LaunchCase" section in the default tab of the portal and finally we checked the "Defer load content" checkbox in the default tab configuration.

We could Launch stand alone section not the work object. Please let us know above highlighted script is correct to launch the case.

***Edited by Moderator: Pallavi to update platform capability tags***

Low-Code App Development Dev/Designer Studio Data Integration Java and Activities
Moderation Team has archived post
Share this page LinkedIn