596
Views
10
Comments
I want to refresh the grid in a download action.
Question

Hi everyone, 

           I have action which is used to download xml file(Using Download), in the same action i want to refresh the grid, is it possible without using any extension.



Thanks

Rajendra Singh 

2025-08-22 10-19-44
Pramod Jain
 
MVP

Hi Rajendra,

Can you tell me why do you want to refresh the grid ? 



Regards

-PJ-


2024-03-14 14-46-22
Nelson Inácio

Refresh query and ajax refresh before download?

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Rajendra,

Not directly. A download link can never be an Ajax Submit (the reason is some technicality with HTTP, afaik). What you can do is perform a widget click on a hidden link or button, and refresh from its action.

UserImage.jpg
Jordan Kozuch

Kilian Hekhuis wrote:

Hi Rajendra,

Not directly. A download link can never be an Ajax Submit (the reason is some technicality with HTTP, afaik). What you can do is perform a widget click on a hidden link or button, and refresh from its action.


It doesn't work. There is really no way to refresh after download without forge?

2020-05-29 14-07-58
Rajendra Singh

Hi Pramod Jain, ...I am downloading the xml using download and in the same action  updating  the table, when the file will get downloaded then i need to show the table detail into the grid. 

my question was if i will use the  download widget the ajax refresh will not work. so i cant refresh the grid....thanks

Hi Nelson Inácio, I think ajax refresh will not work..thanks 




2020-05-29 14-07-58
Rajendra Singh

Hi Kilian Hekhuis.. thanks.. you are right ajax submit will not work..let me try with click widget..




Thanks

Rajendra Singh

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Jordan,

I'm not sure I understand what you are saying. The widget click solution is bog-standard for this approach, so it works. And it also has nothing to do with the Forge. (Also, this is a two-year old thread. Next time, please start a new one.)

UserImage.jpg
Jordan Kozuch

Kilian Hekhuis wrote:

Hi Jordan,

I'm not sure I understand what you are saying. The widget click solution is bog-standard for this approach, so it works. And it also has nothing to do with the Forge. (Also, this is a two-year old thread. Next time, please start a new one.)


Ok, sorry for use so old thread. I have hidden button with ajax submit where is ajax refresh and i clicking that button from download action. And ajax is not working... 

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Jordan,

There's two things to keep in mind: first, since the WidgetClick only works for links/buttons with Ajax Submit, and since the Download Statement can only be used with a normal Submit, the visible Button must be Ajax Submit, and its Screen Action must perform the Ajax refresh + the Widget_Click. The hidden Button must be normal Submit, and its Screen Action must perform the Download. Secondly, setting the "Visible" Property of a Button to False will actually not render the Button at all, so you need to manually hide it by using the Extended Properties (Property "style", Value "display:none"). See attachment for a working example.

TestDownloadAjaxRefresh.oml
2022-03-01 15-42-44
Thiago Mari
Champion

Hi,


You can have a web block with download end node but before that you notify to father page and add a action to get this notify and refresh the page.


Maybe this can work


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.