I want to refresh the grid in a download action.

I want to refresh the grid in a download action.

  

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 

Hi Rajendra,

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



Regards

-PJ-


Refresh query and ajax refresh before download?

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.

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 




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




Thanks

Rajendra Singh

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?

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.)

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... 

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.

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