Export selected fields/columns from a pod
I'm trying to export the first five columns (fields) as a csv.
Using the package it is obviously easy to export the whole file, but this is not what I need.
I guess the right place is at: $data = $Record->export(); using the right arguments for export().
Can some clever person out there give an example for, say, exporting two columns: 'name' and 'firstname'?
2 Answers
Scott just released a plugin to do this. You'll need to know a little SQL, but you can use Pods to generate that if you don't know SQL.
http://wordpress.org/extend/plugins/exports-and-reports/
Thanks.
I looked at that, and the comment "Coming soon... Pods CMS Framework integration, Daily Export Cleanup via wp_cron, Role restriction for Groups / Reports, and Date Filtering" led me to believe it wasn't there yet - but it is exactly what i want more generally. That Scott keeps busy.
I'll have nother look in the next day to two - I am always amazed at the speed of responses in this forum and never fast enough to react as quickly.


