Forum OpenACS Q&A: Outputting results of a query to a CSV
I need to create a CSV file from the results of a query. I searched in the api-doc for csv and found a proc called template::list::write_csv which sounds like just what I need. I've grepped through the code for examples of how to use this proc but my search turned up nothing. The proc seems to expect the name of a list passed in - I don't really understand what this list might be. Can anybody point me to an example of how to use this proc?
template::list::write_csv -name notesat the bottom of note-list.tcl, then when you browse to note-list, you will get a csv instead of a formatted html page.