Export selected fields/columns from a pod

0

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'?

asked Jul 14 '10 at 12:43

cathy

1

add comment
enter at least 15 characters

2 Answers

0

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/

answered Jul 14 '10 at 1:55

wesbos

56

add comment
enter at least 15 characters
0

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.

answered Jul 14 '10 at 2:07

cathy

1

add comment
enter at least 15 characters