7 of 7
7
Plugin: CSVee
Posted: 26 March 2010 09:01 AM   [ Ignore ]   [ # 109 ]  
Lab Assistant
RankRank
Total Posts:  139
Joined  01-02-2008

Hello,

Why is there two archives at the begginning of the thread ? Wich one should I use ?

Thanks.

Profile
 
 
Posted: 26 March 2010 02:22 PM   [ Ignore ]   [ # 110 ]  
Summer Student
Total Posts:  9
Joined  11-21-2005

@Daniel. Thanks for your reply about my problem which to restate it is that I can’t seem to get the proper seperator. I have tried over and over in various ways including your suggestion of just using seperator=”“. Nothing works.
Here is my latest:

{exp:csvee seperator="," query="SELECT email FROM exp_members WHERE email !='needs@email.com' AND email !='deceased@something.org'" show_headings="no"

It seems simple but nothing seems to work. I was able to get the delimiter I want, which is a space only by editing the plugin itself. Even trying that for the seperator doesn’t help.
Any suggestions?
Thanks,
Carole

Profile
 
 
Posted: 01 April 2010 10:24 PM   [ Ignore ]   [ # 111 ]  
Grad Student
Rank
Total Posts:  95
Joined  05-14-2009

@Daniel

{exp:csvee filename="survey.csv" seperator="," query="SELECT name, email, q1, q2a, q2b, q2c, q2d, q3a, q3b, q3c, q3d, q4a, q4b,q4c,q4d,q5   FROM exp_freeform_entries ORDER BY entry_date DESC " 

I am getting the results as text in the browser window, but I am trying to get a CSV file as a download. Is there something missing from my code?

Profile
 
 
Posted: 01 April 2010 10:57 PM   [ Ignore ]   [ # 112 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1757
Joined  03-26-2006

@gavincooper: I was having the same issue. Note the change I had to make in the plugin in this earlier post.

 Signature 

ryan masuga
—————
Masuga Design | devot:ee
@masuga | @masugadesign | @devot_ee

Profile
 
 
Posted: 02 April 2010 08:24 AM   [ Ignore ]   [ # 113 ]  
Grad Student
Rank
Total Posts:  95
Joined  05-14-2009

Excellent Ryan! worked like a charm. The file has a .html that needs to be removed, but then works great. Although, my CSV file is putting all of the results in one row. The column heads are first and then the results are to the right instead of underneath. Anyway, I can wrap the results underneath the columns heads?

Profile
 
 
Posted: 06 April 2010 03:34 AM   [ Ignore ]   [ # 114 ]  
Summer Student
Total Posts:  14
Joined  11-29-2009

Hi there!
Does anyone know if it’s possible to get the CSV file to download when loading the template. Maybe i’m doing something wrong, but when I load the template i just get the query results displayed at the browser, but not CSV file to download. Is it suppose to be like that?

This is the code that i’m using:

{exp:csvee delimiter=","
filename="test.csv"
query="SELECT 
exp_weblog_titles.title as name
FROM exp_weblog_data 
INNER JOIN exp_weblog_titles ON exp_weblog_data.entry_id = exp_weblog_titles.entry_id 
WHERE exp_weblog_data.weblog_id='16' 
ORDER BY exp_weblog_titles.title ASC"

Thanks!

Profile
 
 
Posted: 06 April 2010 09:47 AM   [ Ignore ]   [ # 115 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1757
Joined  03-26-2006

ax2000: You did read the last few posts, right?

 Signature 

ryan masuga
—————
Masuga Design | devot:ee
@masuga | @masugadesign | @devot_ee

Profile
 
 
Posted: 06 April 2010 08:35 PM   [ Ignore ]   [ # 116 ]  
Summer Student
Total Posts:  14
Joined  11-29-2009

Ooops.. Sorry about that Ryan.
I read it now and changed the line as you said and works fine!

Thanks a lot.

Profile
 
 
Posted: 16 June 2010 10:39 AM   [ Ignore ]   [ # 117 ]  
Grad Student
Rank
Total Posts:  43
Joined  07-22-2009

hi

i am a nube…how do I add a line break?

{exp:csvee query "SELECT field_id_37,  field_id_39,  field_id_41,  field_id_45 FROM exp_weblog_data WHERE field_id_48='Yes'" show_headings='no'
Profile
 
 
   
7 of 7
7