Problem with CSV download

I have a button connected to a “connect server”. Make a query, export to CSV. Everything ok.

I wish it was possible to download the file automatically.

The CSV file it’s correctly generated in the directory I have chosen, but why the browser does not make me download? what am I doing wrong?
Thanks

To run the download you need to call the server action using a href="path/to/server/action" instead of using an dmx-on:click event.