Question
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.
What's tried so far : window.location.refresh in a javascript, but it didn't work.
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.
Could anyone help ?
Hi Ravi
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.
Thank you,
Bhuvana.