CSV export/download

Hi, I’m following the instructions here https://docs.wappler.io/t/file-downloads-with-server-connect/12780 in order to configure a CSV export and download function.

I have the CSV export working fine (file is generated using dynamic datetime) but I can’t get the download to work using that guide. When I go to select the route the default anchor button link remains unchanged (#)…


2022-02-16_13-52-23

I’m wondering if there’s an easier way to do this as it’s a relatively straight forward operation, i.e. a CSV is generated on the server with a dynamic name and I want the user to able to download that CSV.

There doesn’t seem to be a definitive guide on how to do this and I’ve followed various threads on the Wappler Community but nothing seems to work.

Thanks for any help.

Hello

The link should be inserted not static, but to make a dynamic binding:

2

Dynamic binding, because there are parameters in the link route.

Same thing happens - when I select the route in the dynamic link binding the value remains blank.

You should see your parameters and fill them with the necessary data, here is an example of a link with a parameter:

1 Like

Ah, thank you! I had 3 parameters and was only filling one of them because the other two were unnecessary.

I edited the route path and now it works.

Thanks again - much appreciated.

1 Like