Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
The above general request grid is populated using a collection widget... now when clicked on
reopen button, a pop-up window will opened like below.
On close of this pop-up window I would like to
refresh the grid.
I tried by binding the "windowClosed" event of the navigate function to refresh mashup in the collection widget mashup but the grid is not getting refreshed.....
Would like to know if their is an alternative way to refresh the grid.
Solved! Go to Solution.
Maybe bind the windowClosed event to the service that populates the grid.
Or bind the "RefreshRequested" event from the mashup to that service.
Lets say in mashup "A" a collection widget is used, another mashup (let say mashup "B" : child mashup) is used to populate the cells in the collection widget.
In mashup "B" we have a navigation function that allows for the window pop-up on button click. On closing the window pop-up I'm trying to refresh mashup "B" using window closed event but that's not working, I'm assuming its not working because its the collection widget child mashup.... I need help to re-populate the collection cells to show the latest data.
What I was trying to say it that "refresh" itself does not run any services. You have to define what refresh should do. By re-running the service (you can test this by temporarily adding a button to do so manually) you will re-get the data from the server, causing the widgets to repopulate.
In case your events are not propagated, you can try to use a session variable for master-child communication https://community.ptc.com/t5/ThingWorx-Developers/How-to-invoke-a-service-in-a-parent-mashup-from-child-mashup-in/m-p/935681
Hi @MC_10978167,
I wanted to follow up with you on your post to see if your question has been answered.
If so, please mark the appropriate reply as the Accepted Solution.
Of course, if you have more to share on your issue, please let the Community know so that we can continue to help you.
Thanks,
Anurag