Download document (filename) from GRID without open a new window?

Hello,

I added a Document element (filename) from a form.

When I want to display the file and download it from a grid, I can download the file, but a window opens (my PHP file with this parameters: nmgp_parms=@SC_par@4773@SC_par@Liste_fichiers@SC_par@92f5dbc53eb1cde4c740b85f140eee71)

The file is downloaded, but the window remains open.

How to download a file from a grid without having a new window?

Thanks

PS : A better explain in english here : Download file from grid?. For your information, my files are in default folder.

Report to support like new feature, I wait…

I made it in two steps.

  1. Create a blank app called DownloadFile and on the OnExecute event read.the file and echo it to the browser. ( you can find plenty of script to download a file in php, it is a matter of putting the right http header…)

  2. Use SC_makelink macro to connect the grid field to the Download app.

When you click on such field the file is downloaded and the window is left unchanged.

2 Likes

hmmm, it’s interesting, thanks.