Skip to Content
0
Former Member
Jul 20, 2005 at 01:43 PM

create and send file to front-end for download.

241 Views

Hi,

In a nutshell I need to give users the possibility to download the contents of a table as a CSV file.

From what is understood, this would happen like this:

1)loop over the context node and write a file (table.csv) with the contents of each cell separated with a semi-colon. (or is there an API available to write the contents of an entire node/table)

2)send this file to the front-end so that a file download automatically begins and user can save it on the hard-disk.

Has someone done this before? If so, is it possible to share the code?

As usual, big points will be awarded.

Thanks!

faB