I have a button on a harness. Upon click of the button I need to openurlinwindow (-ie- to generate a file and download it locally) and refresh a section on the harness after the activity called by openurlinwindow completes. The activity does some validations and can set page messages which I need to show on the harness that the button is on. I tried adding another action to refresh other section after the openurlinwindow action in the actionset for the clicking of the button but it seems to do nothing. Why doesn't this work? Any other way I can do what I need to do?
***Edited by Moderator Marissa to update Platform Capability tags****
I've tried replicating the problem and run into the same issue of what you are facing. However, I see the page set messages showed in the harness which launched in the popup window. Just want to know if you are able to see the page set messages in the harness that is launched in the popup or not.
There are couple of reasons why the page set messages are not showing in the parent harness.
One, configuration, page set messages are harness level so refreshing the section only does not give desired result, but I tried with Refresh-Current-Harness instead of refresh-this-section/other-section and still dont see the desired behaviour (But seen once)
Second, the event actions are not sequential, the open url in window action and refresh action trigger in parallel so the refersh action does not wait until first action completes. So, that is the reason I see desired behavior once.
While I dig in to help you, I just want to know if you could see the similar behaviour of what I see in displaying the page set messages. Which will help to set the right direction for investigation.
I do not see the messages in the popup either but the specific section I am trying to refresh is not on the popup anyways. I am setting page message on the primary page from the activity that is called by OpenURLInWindow action. Hmmm. I too see that the actions are not executing in order. This concerns me. Pega documentation indicates that actions are supposed to execute in sequential order which is not what seems to be happening here.
If I could get the page messages to show on the popup that would work also but I'm not sure how to accomplish that. You seemed to have done it but my popup is downloading a file locally. I don't get the blue status screen like you do.