Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
On clicking "Apply" button in this popup, i want to reload the main mashup. On clicking a button, one service will be called. I binded that service serviceInvokeCompleted to an expression which having a code "location.reload();". But the page is not refreshing. How to do this.
From what you have listed, you have all the steps.
Is the expression not firing? Is your 'location.reload()' in the pop-up or the parent mashup?
If it is in the pop-up, I don't think it will work. If you don't need the pop-up after refresh, you can do it using 'pop-up close'
Also do you need a full refresh vs. just a 'data reload' which would mean just re-triggering services that populate the data on the mashup.
I have given location.reload(); inside popup. It reloaded the parent mashup also only when "Apply" button clicked for double times. But i want it to happen on single click itself.
If it isn't doing it on the first click but only the second, perhaps check your expression and troubleshoot if it is firing properly or not?
I gave "Fire on First Value", it is working now. Thanks
May be you can define and change a session param value with a random number / datetime from popup and on this session variable change you could reload the parent mashup
ill Try this.