Question

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?

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

January 14, 2016 - 4:56pm

Apoorva,

A few questions to help provide some context for this post:

  • What version of Pega are you using?
  • How are you launching the URL in a new window?
  • Where/how are you using window.opener.document.actionForm.submit();
  • Are you trying to develop a custom control?

Thanks!