Buy Now
Sign in

Export db data to CSV from CF v4

vashanka , May 03 2011, 17:29
J
jmarian1 138
May 17 2012, 08:08 #289318
Thanks a million times Bob. I got it working. Whew! I am officially finish in my forms. Thanks for your help!
GreyHead 65
May 17 2012, 14:11 #289359
Hi jmarian1,

Well done :-)

Bob
If you'd like to buy me a coffee or two, thank you very much
S
speedy129 1
August 24 2012, 07:42 #298530
Hi all!
I have installed the action and it works great.
is it possible on the mail action to attach the generated CSV file?
if yes, i'm very pleased if you give me an example

kindly regards
Robi
GreyHead 65
August 24 2012, 08:15 #298532
Hi Robi,

Hmmm, the action is included in the current release so you shouldn't have needed to install it :-( (Though I do have a slightly updated v2).

You can access the file path after the CSV export action and you need then to pass this to the Email action. If I remember correctly it's fiddly to do this with the standard Email action which is only really intended to handle uploaded files. If you add the file path to the $form->data array as, say $form->data['export_file_path'] then my Custom Email [GH] action makes it easy to attach the file by putting {export_file_path} in the Files box.

Bob
If you'd like to buy me a coffee or two, thank you very much