17
Views
4
Comments
How to refresh the contents of a web block (Traditional web)  from within a popup.
Application Type
Traditional Web

Hi everyone,

I have a situation where I upload documents via a popup screen.


When the popup is closed , I would like to display the list of documents, included the newly uploaded one, as soon as the popup closes.

The list of documents are in a web block on the main screen, and its source is an export API which is called in the preparation of the web block.


I cannot seem to get the contents of the web block to refresh without having to refresh the browser for the screen preparation to run.

As a last resort, I have tried to navigate away from the main screen and directly back to it, but not even that worked.


Rank: #2405

Hi,

Enclose the webblock in a container. (Give container a name). Change the button on popup as Ajax submit. Use ajax submit on logic of the popup button and give widget as the container name. Not sure if I am able to explain the solution properly, please revert if you need further clarification on this.

Regards,

Ishan 

Hi Larissa,

Good day!

Can you share an OML?

Thanks and regards,

Chris

Rank: #127

Hi,

just refreshing the block itself won't do anything, of course.  

You'll have to re-execute a request to the source (some api if I understand correctly from your post)

Dorine

Rank: #258

If you refresh a webblock with an ajax refresh, the preparation should be executed again, and the data re-fetched.