Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
While clicking button in one mashup, I want to refresh another mashup. How to do this.
Solved! Go to Solution.
Refreshing a mashup can be two concepts.
1. Refreshing the data displayed - you would use the click to trigger an event (using either session or mashup parameter perhaps) to fire a Service
2. Refresh whole mashup - you would now trigger into the Expression widget and do a location.reload()
Also there is a pathway through the use of 'GetProperties' Push Update from Server option, you would still need to use a Mashup parameter to convert a property update into an event.
Lastly and ugliest, would be a timer on the mashup you want to refresh, that 'checks' if it needs to refresh.
Refreshing a mashup can be two concepts.
1. Refreshing the data displayed - you would use the click to trigger an event (using either session or mashup parameter perhaps) to fire a Service
2. Refresh whole mashup - you would now trigger into the Expression widget and do a location.reload()
Also there is a pathway through the use of 'GetProperties' Push Update from Server option, you would still need to use a Mashup parameter to convert a property update into an event.
Lastly and ugliest, would be a timer on the mashup you want to refresh, that 'checks' if it needs to refresh.
Can you please eloborate about the use of 'GetProperties' Push Update from Server option. Where I can find this option and how to use it?
I have one mashup "X". This X mashup have two contained mashups "Y" & "Z". I have a button in Z mashup. If i clicked that, I want to refresh a page and land on the same page( X mashup having both Y & Z).
But iam able to refresh only Z mashup. If iam passing mashup parameter to Y mashup, it is just a value so iam not able to trigger the services.
Along with mashup parameter, in the same name event created in mashup properties, that event is not triggering the service. It is not doing anything actually.
How to refresh both Y and Z mashup separately.?
You can use the Mashup Parameter value changed event or refresh requested event to trigger services in the contained mashup.
Mashup Parameter value is always same. Maybe that is why changed event is not working it seems. Does refresh requested have to be handled manually? How to trigger it by service/expression?
You can either use an event to do a 'refresh request' in a child mashup and use 'refresh requested' to trigger necessary services.
Or you can purposely toggle a value that is passed as mashup parameter and use mashup parameter changed.
Hi @AP_9587236
If you feel your question has been answered, please mark the appropriate response as the Accepted Solution for the benefit of others with the same question.
Regards.
--Sharon