Question

1
Replies
418
Views
ApoorvaMatolli Member since 2014 14 posts
Marsh
Posted: 4 years ago
Last activity: 4 years 8 months ago
Closed

Submitting the parent window (screen flow) to move to the next screen

Hi,

I have a scenario where I launch a URL in a new window. On submitting the new window launched, I am trying to submit the parent window ( which is a screen flow) so that it goes to the next screen.

I am trying to achieve it through the following -

window.opener.document.actionForm.submit();

The above line of code works for a process flow. On analysis I found that the form tag for the process flow and screen flow are different -

Process flow:

<<URL>>/ptasbxweb/PTAExt/4ZGaV3vsmuCjQxwcMAfFboFZYld3iUWy*/!STANDARD?pyActivity=FinishAssignment&pzPrimaryPageName=pyWorkPage&pzTransactionId=054078add3cc5f0e5f75bf5384422f82&pzFromFrame=pyWorkPage&pzHarnessID=HID7DE519D8C38A542480192E35EE081158

Screenflow:

<<URL>>/PTACFA/rGolvpphm2ZcwxTrGeic6w%5B%5B*/!STANDARD?pyActivity=Show-Harness&pzPrimaryPageName=pyWorkPage&pzTransactionId=103ffeac2d69ff45d197657643f99ee1&pzFromFrame=pyWorkPage

I checked the button code of continue for the screen flow which is as follows -

<button title="Go to the next screen" class="pzhc" type="button" data-click="[["setUserStart",["FINISHASSIGNMENT"]],["doFormSubmit",["pyActivity=FinishAssignment",":this","Submitting...",":event"]]]" data-ctl="">

Do I need to include something like the above line of code for me to submit my parent window (from the new window) to go to the next screen?

Pega Customer Service Case Management User Interface Low-Code App Development
Moderation Team has archived post
Share this page LinkedIn