Posted: 13 Feb 2017 12:27 EST Last activity: 15 Feb 2017 9:10 EST
Mashup: Refresh the gadget on an action in a child window
I have the setup described below.
A Pega gadget as 5th tab in an existing modal page. The gadget's action is "dispaly". The harness displays list of work items and also a button, "create new work item". On click on New work item, we used open URL in window (doUIaction, createNewWork) to do some processing and create the work object, because of the space constraint on the existing modal window and 5th tab described above. Now the requirement is, the work items list on the harness should refresh automatically once I'm done with processing/ final button click on the window opened in Open URL in Window.
Ideas I have: probably the on custom event of gadget ? and in the customCallBack JS try the refresh gadget action. But I'm not sure how the custom call back works in general and specifically how to trigger this custom call back function only on a button click in the child window opened by Open URL in Window.
Please provide screen shots to clarify what your current configuration is so we could understand what you are attempting to do.
What version of Pega are you on?
Because you use the term mashup, I am assuming you are in an IAC like set up. Is that true? Kindly clarify.
Assuming you are expecting a link of work objects to automatically refresh after a new work object was created, there is no way to perform that automatic refresh. You would have to add a refresh icon and click on it to see the latest update.
The auto refresh is possible if you use Create work or open flow in modal window actions instead of openURLInwindow on button click. Because openURLInwindow is opening in it's own child window, refresh is tricky here.