Simplicty and flexibility!


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:

  1. Create a new transfer and give it a name
  2. Select source: Current app and a table you want to export to csv
  3. Select target: CSV and the following syntax for path: "[[ MEDIA ]]files/[{ gdict.filename|default:"test.csv" }]"
  4. Save it and test it by run, now you should have a csv file with the name test in you static/files folder
  5. Make a new page and add the transfer to the page properties
  6. Open the page in a browser with the syntax: localhost:8000/pagename/?filename=realthing.csv
  7. 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:47 DataEase Generation 3
DG3_BlogList