How the use querystring to for set the file name for a csv transfer
Started by DataEase Development
You will need to Sign In to be able to comment on the Blog!
How the use querystring to for set the file name for a csv transfer
A transfer can be used for creating an export from a DateEase table. To be able to make the file name for the export in runtime, you can do the following:
Create a new transfer and give it a name
Select source: Current app and a table you want to export to csv
Select target: CSV and the following syntax for path: "[[ MEDIA ]]files/[{ gdict.filename|default:"test.csv" }]"
Save it and test it by run, now you should have a csv file with the name test in you static/files folder
Make a new page and add the transfer to the page properties
Open the page in a browser with the syntax: localhost:8000/pagename/?filename=realthing.csv
Now you should have a csv file with the name realthing.csv in the static/files folder
Written by DataEase Development 19/04/13 at 14:04:47DataEase Generation 3