Skip to main content
17-Peridot
January 4, 2022
Question

how to reload a page from a popup

AP_9587236_0-1641305435940.png

 

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.

6 replies

22-Sapphire I
January 5, 2022

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.

Translate
17-Peridot
January 7, 2022

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. 

Translate
22-Sapphire I
January 7, 2022

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?

Translate
12-Amethyst
January 7, 2022

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

Translate
17-Peridot
January 9, 2022

ill Try this. 

Translate