Posted: 11 Aug 2017 3:48 EDT Last activity: 16 Oct 2018 12:03 EDT
doFormSubmit on click of button replaces screen layout with perform harness
We have a functionality wherein on click of a button, run script action is triggered for doFormSubmit function. The portal consists of Header_Left screen layout and the button exists in main area of the portal of submission. On submission, the perform harness with the requisite data should load in the main harness. This isn't happening and the whole screen layout is being replaced by the perform harness. Ideally it should only load in the main area of the screen layout.
On further investigation, I could find that the data-portalharnessinsname isn't being set to portal name while in ideal case this gets set to screen layout harness name. Not sure if this is the problem out here but would need suggestions to fix the said behavior.
Note: pega.u.d.pyStreamNameForGadget is being set to Perform harness and ideally, as far as my understanding on this, the set Gadget name (harness) should load in the main area and not replace the screen layout.
Also, the said behavior occurs only when the doFormSubmit action is performed right after screen layout is loaded. If any other action such as trigger of any event from left sidebar area/header area, click of link or onchange of dropdown in right main area, etc. is performed before any doFormSubmit action then, it works perfectly fine loading the subsequent harness in the right main area as desired.
**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.