Odd CSV Results

2014-05-13 Thread David Phelan
Group, I have written a rather simple report to indicate pages on the site that have not been updated within a specific time span. I am outputting this report to a CSV file. The entire process works, but when I click the link to the generated report, only the first two lines are displayed

RE: Odd CSV Results

2014-05-13 Thread Robert Harrison
I would assume you are doing a loop to generate the CSV content. Are you adding CHR13 to the end of each line? Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct   125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788 T

RE: Odd CSV Results

2014-05-13 Thread David Phelan
: RE: Odd CSV Results I would assume you are doing a loop to generate the CSV content. Are you adding CHR13 to the end of each line? Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive,  Suite 100   I  Hauppauge, NY

RE: Odd CSV Results

2014-05-13 Thread Robert Harrison
Good. Glad it's solved. I've done a lot of CSV files and they do seem to work well once you get the syntax correct. Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct   125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788 T

Re: CSV ODBC driver under Windows 2008

2013-08-30 Thread Byron Mann
/desktop/ms709353(v=vs.85).aspx Byron Mann Lead Engineer Architect HostMySite.com On Aug 30, 2013 10:46 AM, wrote: Ok, I have more information about this problem. In the CSV file, if I replace all semicolons by commas, it works perfectly. The problem is that, either under W 7 or W 2008

Re: CSV ODBC driver under Windows 2008 (finaly)

2013-08-30 Thread Claude Schnéegans
I finaly found the problem: When you open the ODBC Administrator, you first select the database you want to update, you click on configure, you see the name of your datasource, fine, then you click Options, you still see the name of the datasource you are configuring, then you click Define

Re: CSV ODBC driver under Windows 2008

2013-08-30 Thread Claude Schnéegans
You might try passing delimiter=';' as an additional dsn parameter. BINGO! The problem is that the file Schema.ini is not properly updated by the 32 bit ODBC Administrator. In my W 7 file I see Format=Delimited(;) which is correct, but in the W 2008 file I have Format=CSVDelimited I set

Re: CSV ODBC driver under Windows 2008

2013-08-30 Thread Claude Schnéegans
Ok, I have more information about this problem. In the CSV file, if I replace all semicolons by commas, it works perfectly. The problem is that, either under W 7 or W 2008, it seems that one can set the delimiter and some other format parameters in odbcad32.exe, but they are not saved anywere

CSV ODBC driver under Windows 2008

2013-08-29 Thread Claude Schnéegans
Hi, since I moved my applications from a 2003 server to Windows 2008, I have a problem reading a database defined on a .CSV file through the ODBC socket driver. The problem seems to be with the ODBC driver. I have the 32 bit version of CF installed an I use the odbcad32.exe 32 bit ODBC

Re: inserting a new row at the top of CSV file

2012-07-10 Thread Akos Fortagh
thanks very much, it worked ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

inserting a new row at the top of CSV file

2012-07-09 Thread Akos Fortagh
unusual request I know, I have a CSV file with lots of rows but it has no column headings. Is there a way of inserting a row at the top of the file (1st row) with the heading names? any help would be appreciated. thanks

inserting a new row at the top of CSV file

2012-07-09 Thread Akos Fortagh
Unusual request I know, I have a CSV file with lots of rows but it has no headings, is there a way of inserting a new row at the top of the CSV file with some heading names? Any help would be greatly appreciated. ~| Order

Re: inserting a new row at the top of CSV file

2012-07-09 Thread John M Bliss
a CSV file with lots of rows but it has no headings, is there a way of inserting a new row at the top of the CSV file with some heading names? Any help would be greatly appreciated. ~| Order the Adobe Coldfusion Anthology now

problem using cfheader to create csv file from query

2012-05-24 Thread Christophe Maso
at the document object. On the action page, a query is generated and fed to a custom changeQueryToCSV(query) function. Ultimately I want the user to be able to view (in Excel) and/or save the resulting .csv to their own pc. I use this at the bottom of my action page to make it happen: [code] cfcontent type

Re: Create CSV and TAB docs

2011-11-07 Thread Torrent Girl
Modify http://cflib.org/udf/QueryToCSV2 to use or chr(9) (a tab literal) as the list delimiter. Alternately, add delimiter as an additional argument, then you can use it for both CSV and TAB. Cheers, .jonah Thank Jonah I am using this one: http://cflib.org/udf/QueryToCSV2 So you

Re: Create CSV and TAB docs

2011-11-06 Thread Dorioo
to specify a date time automatically in Excel from a CSV file opening. If someone knows, please let us know. -- Thanks I was able to format the data. It works now. Any suggestions on creating a TAB file in CF? ~| Order

Re: Create CSV and TAB docs

2011-11-05 Thread Roger Austin
On 11/4/2011 11:39 PM, Torrent Girl wrote: On 11/4/2011 8:59 AM, Torrent Girl wrote: Hi All. I need to give users the ability to download a CSV and TAB file. While I found a neat little function to create a CVS file (http://www.cflib.org/index.cfm?event=page.udfbyidudfid=1197) I am having

Re: Create CSV and TAB docs

2011-11-05 Thread Torrent Girl
as date. I don't know a way to specify a date time automatically in Excel from a CSV file opening. If someone knows, please let us know. -- Thanks I was able to format the data. It works now. Any suggestions on creating a TAB file in CF

Re: Create CSV and TAB docs

2011-11-05 Thread .jonah
Modify http://cflib.org/udf/QueryToCSV2 to use or chr(9) (a tab literal) as the list delimiter. Alternately, add delimiter as an additional argument, then you can use it for both CSV and TAB. Cheers, .jonah Here's the one I'm using: /** * Convert the query into a CSV format using

Create CSV and TAB docs

2011-11-04 Thread Torrent Girl
Hi All. I need to give users the ability to download a CSV and TAB file. While I found a neat little function to create a CVS file (http://www.cflib.org/index.cfm?event=page.udfbyidudfid=1197) I am having a problem with dates values. Here is my date: 6/20/2009 7:15:03 PM but in the file

Re: Create CSV and TAB docs

2011-11-04 Thread John M Bliss
Are you seeing that value in Excel? What do you see if you open the CSV with a text editor like Notepad? On Fri, Nov 4, 2011 at 7:59 AM, Torrent Girl moniqueb...@gmail.com wrote: Hi All. I need to give users the ability to download a CSV and TAB file. While I found a neat little function

Re: Create CSV and TAB docs

2011-11-04 Thread Roger Austin
On 11/4/2011 8:59 AM, Torrent Girl wrote: Hi All. I need to give users the ability to download a CSV and TAB file. While I found a neat little function to create a CVS file (http://www.cflib.org/index.cfm?event=page.udfbyidudfid=1197) I am having a problem with dates values. Here is my

Re: Create CSV and TAB docs

2011-11-04 Thread Torrent Girl
Are you seeing that value in Excel? What do you see if you open the CSV with a text editor like Notepad? yes when I open it in excel. When I select the column in excel I see the true value. ~| Order the Adobe Coldfusion

Re: Create CSV and TAB docs

2011-11-04 Thread Torrent Girl
On 11/4/2011 8:59 AM, Torrent Girl wrote: Hi All. I need to give users the ability to download a CSV and TAB file. While I found a neat little function to create a CVS file (http://www.cflib.org/index.cfm?event=page.udfbyidudfid=1197) I am having a problem with dates values. Here

CFHEADER on Chrome to download an Excel CSV / Mime Type problem

2010-12-06 Thread Brook Davies
I've been using the following code for years with no problems on IE,FF,Safari to force the download of a CSV file that will be associated with and opened by Excel: cfheader name=Content-Disposition value=attachment;filename=myExport.csv charset=utf-8 cfcontent type=application/vnd.Microsoft

Re: CFHEADER on Chrome to download an Excel CSV / Mime Type problem

2010-12-06 Thread Rick Root
Have you tried using this mime type instead? application/msexcel On Mon, Dec 6, 2010 at 1:42 PM, Brook Davies cft...@logiforms.com wrote: I've been using the following code for years with no problems on IE,FF,Safari to force the download of a CSV file that will be associated

RE: CFHEADER on Chrome to download an Excel CSV / Mime Type problem

2010-12-06 Thread Brook Davies
That works in every other browser (that I tested..) except Chrome. Chrome just downloads the CFM template... -Original Message- From: Rick Root [mailto:rick.r...@gmail.com] Sent: December-06-10 10:50 AM To: cf-talk Subject: Re: CFHEADER on Chrome to download an Excel CSV / Mime Type

RE: CFHEADER on Chrome to download an Excel CSV / Mime Type problem FIXED

2010-12-06 Thread Brook Davies
: Re: CFHEADER on Chrome to download an Excel CSV / Mime Type problem Have you tried using this mime type instead? application/msexcel On Mon, Dec 6, 2010 at 1:42 PM, Brook Davies cft...@logiforms.com wrote: I've been using the following code for years with no problems on IE,FF,Safari

Re: Importing from CSV to a database

2010-10-22 Thread Will Tomlinson
Thanks, but it is not that simple. I have plenty of things to check, convert, validate, etc. Don't forget an Excel file is created and filled by humans ;-) I would figure out a way to use my RDBMS to handle this. Navicat or SQL Server tools to do it. Then clean the data or whatever once it's

Re: Importing from CSV to a database

2010-10-22 Thread M P
I agree using something like Navicat to load the data would be a much better solution, but if you must use code, then I would parse those table names and replace all of the bad characters and spaces before creating the tables. Special characters and spaces just cause too many problems to even

Re: Importing from CSV to a database

2010-10-21 Thread Ketan Jetty
Another way to do this is read the file, loop thru the lines and massage the data as wanted when inserting into the database. This way you can have better control on the data manipulation. cfloop file=#expandPath('.')#\sampledata.csv from=1 index=line cfquery name=qi datasource=#mydsn#

Re: Importing from CSV to a database

2010-10-21 Thread Casey Dougall
On Thu, Oct 21, 2010 at 1:03 PM, Ketan Jetty kje...@yahoo.com wrote: Another way to do this is read the file, loop thru the lines and massage the data as wanted when inserting into the database. This way you can have better control on the data manipulation. cfloop

Re: Importing from CSV to a database

2010-10-21 Thread Claude Schnéegans
If this is MS SQL you can do this as well. Thanks, but it is not that simple. I have plenty of things to check, convert, validate, etc. Don't forget an Excel file is created and filled by humans ;-) ~| Order the Adobe

Importing from CSV to a database

2010-10-20 Thread Claude Schnéegans
Hi, I have to create a new database from a CSV text file. I have an ODBC datasource defined for the CSV file and I can read the file with a query like: CFQUERY NAME=getMembers DATASOURCE=Import SELECT * FROM membersImport.csv /CFQUERY The problem is that column names have blanks and special

Re: Importing from CSV to a database

2010-10-20 Thread Leigh
I've tried getMembers['Région administrative'] but it causes an error. Did you forget the row number or is that typo? ie queryName[column name][ rowNumber ] ~| Order the Adobe Coldfusion Anthology now!

Re: Importing from CSV to a database

2010-10-20 Thread Claude Schnéegans
Did you forget the row number or is that typo? Actually, I'm in a loop on the query, I thought the row number would be implicit as usual. But you're right, queryName[column name][queryName.currentRow] does work. This is kind of weird since queryName.columnName works, bur not

Re: Importing from CSV to a database

2010-10-20 Thread Leigh
This is kind of weird since queryName.columnName works, bur not queryName[columnName] I guess the difference is queryName[columnName] gives you access to the column array. I thought it was strange at first too. But realized it is a good thing, since it allows you to access values in any row

Re: Using a CSV as a datasource (CF8)

2010-09-23 Thread Tim Claremont
To get this to work, I had to do something really hokey. I created an Access database, and used a linked table to the actual text file. Works great. And no, I am not proud of this solution... ~| Order the Adobe Coldfusion

RE: Using a CSV as a datasource (CF8)

2010-09-21 Thread Hugo Ahlenius
on the network. It collects magnetic stripe scans to a CSV file located on the server. I need to get this into a SQL Server db ideally. I created the ODBC text data source on the server. When I attempt to add the data source in the ColdFusion administrator, it tells me: Connection

Using a CSV as a datasource (CF8)

2010-09-20 Thread Tim Claremont
I have a badge reader that hangs on the network. It collects magnetic stripe scans to a CSV file located on the server. I need to get this into a SQL Server db ideally. I created the ODBC text data source on the server. When I attempt to add the data source in the ColdFusion administrator

Re: Removing new line from CSV?

2010-09-16 Thread denstar
On Wed, Sep 15, 2010 at 9:29 AM, Rick Root wrote: Unfortunately, using your code (except using createObject instead of javaloader, as I have the library in CF's classpath), I get the same error. Here's a function that uses opencsv http://opencsv.sourceforge.net/ 2.1, another CSV http

Re: Removing new line from CSV? [spamtrap bayes][spamtrap heur]

2010-09-16 Thread Rick Root
On Thu, Sep 16, 2010 at 12:04 AM, Paul Hastings p...@sustainablegis.com wrote: On 9/16/2010 2:45 AM, Rick Root wrote: http://www.opensourcecf.com/1/2010/09/Example-of-using-JavaCSV-CSVReader-class-to-read-CSV-files.cfm pretty sure the numeric columns for csvReader are 0 based (ie 1st column

Re: Removing new line from CSV?

2010-09-15 Thread Rick Root
Use the JavaCSV library to read and writing CSV files with coldfusion. You'll NEVER have to worry about parsing CSV files again =) This java library handles all kinds of things like this. Dealing with CSV files in coldfusion can be a real pain in the ass once you start dealing with files where

Re: Removing new line from CSV?

2010-09-15 Thread Rick Root
BTW in my own interest, having never actually used the CsvReader class (only the CsvWriter class), I started to attempt to write some sample code... Unfortunately, this is as far as I got :) cfset filename = test.csv cfset fileInput = createObject(java,com.csvreader.CsvReader) cfset

Re: Removing new line from CSV?

2010-09-15 Thread Dorioo
If I recall correctly, I experienced problems when using just a file name as well. But was successful by using constructor using the filename, delimeter, and charset. I hope you can see what changes you're need from the code below which works within the context of my app but doesn't work on its

Re: Removing new line from CSV?

2010-09-15 Thread Rick Root
Unfortunately, using your code (except using createObject instead of javaloader, as I have the library in CF's classpath), I get the same error. On Wed, Sep 15, 2010 at 10:52 AM, Dorioo dor...@gmail.com wrote: If I recall correctly, I experienced problems when using just a file name as well.

Re: Removing new line from CSV? [spamtrap bayes][spamtrap heur]

2010-09-15 Thread Paul Hastings
file not found message. try full path to CSV file. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http

Re: Removing new line from CSV? [spamtrap bayes][spamtrap heur]

2010-09-15 Thread Rick Root
On Wed, Sep 15, 2010 at 1:01 PM, Paul Hastings p...@sustainablegis.com wrote: your error looks like a poorly worded file not found message. try full path to CSV file. Yeah, that was it. And yes, VERY poorly worded =) Rick

Re: Removing new line from CSV? [spamtrap bayes][spamtrap heur]

2010-09-15 Thread Rick Root
Okay, I wrote some sample code and tested it for using JavaCSV to read a CSV file. http://www.opensourcecf.com/1/2010/09/Example-of-using-JavaCSV-CSVReader-class-to-read-CSV-files.cfm My test file didn't have headers so this just generically dumps the csv into a very generic query. Rick

Re: Removing new line from CSV? [spamtrap bayes][spamtrap heur]

2010-09-15 Thread Paul Hastings
On 9/16/2010 2:45 AM, Rick Root wrote: http://www.opensourcecf.com/1/2010/09/Example-of-using-JavaCSV-CSVReader-class-to-read-CSV-files.cfm pretty sure the numeric columns for csvReader are 0 based (ie 1st column is referenced as 0 not 1). yes, i'm too lazy to register on your blog

Removing new line from CSV?

2010-09-14 Thread Phillip Vector
I have the following data... bb0a0933-85d4-44be-a72c-25aa759c603f,3782049,DirectMail,63933-8188,The form ProgramForms has been rejected because of the following reason: bb0a0933-85d4-44be-a72c-25aa759c603f,3782049,DirectMail,63933-8188,The form (Application Form) has been rejected because of the

Re: Removing new line from CSV?

2010-09-14 Thread Jacob Munson
In Windows a line feed is actually #chr(10)##chr(13)#. However, if you remove those you will probably remove ALL line feeds in your file instead of just the double line feed that is causing you problems. This can be tricky, but you will probably want to look for

Re: Removing new line from CSV?

2010-09-14 Thread Phillip Duba
Try Chr(10) also like: cfset newcsvfile = replace(csvfile, '#chr(10)#', '', ALL) I just had to do that with a message digest that wasn't being verified correctly, Phil On Tue, Sep 14, 2010 at 1:17 PM, Phillip Vector vec...@mostdeadlygame.comwrote: I have the following data...

Re: Removing new line from CSV?

2010-09-14 Thread Michael Grant
No need for the extraneous pound signs. cfset newcsvfile = replace(csvfile, chr(10), '', ALL) On Tue, Sep 14, 2010 at 1:26 PM, Phillip Duba phild...@gmail.com wrote: Try Chr(10) also like: cfset newcsvfile = replace(csvfile, '#chr(10)#', '', ALL) I just had to do that with a message

Re: Handling In-Field Commas in CSV import?

2010-06-04 Thread denstar
On Thu, Jun 3, 2010 at 2:35 PM, Paul Henderson wrote: This solution worked for me: http://www.bennadel.com/blog/1903-Parsing-CSV-Data-With-ColdFusion-s-CFHTTP-Tag.htm I've done that in the past with some success. It all depends on how good the data is. GIGO, ja know? There's a long

Handling In-Field Commas in CSV import?

2010-06-03 Thread paul
I'm trying to import a comma delimited CSV file using cfloop file=filename.csv, but some records contain commas and they are throwing everything off. I can't seem to figure out how to replace the in-field commas without messing up the delimiter. Any ideas? Thanks in advance. -Paul

Re: Handling In-Field Commas in CSV import?

2010-06-03 Thread Barney Boisvert
There is absolutely no reason to parse a CSV document manually; there are myriad tools for exactly this purpose. A quick Googling will turn up a pile of options. You may need to tweak them if your file is enormous and must be processed line-by-line, but even then you should be able to use

Re: Handling In-Field Commas in CSV import?

2010-06-03 Thread Judah McAuley
Any delimited file that has delimiters contained within a field is supposed to use a text qualifier. For CSV, the most common qualifier is double quotes, so your file would look like: 1234,field 1,my big field, that has a delimiter or two, but is qualified If there are not text qualifiers

Re: Handling In-Field Commas in CSV import?

2010-06-03 Thread Paul Henderson
Thanks for the replies, it seems like I'm taking the wrong approach. Currently I am using a cfloop to loop over the file, then #listgetat(FileLine,1)# to reference each field. cfloop file=C:\CSVs\2010-05-21.csv index=FileLine cfset record_type = '#listgetat(FileLine,1)#' /cfloop

Re: Handling In-Field Commas in CSV import?

2010-06-03 Thread Paul Henderson
This solution worked for me: http://www.bennadel.com/blog/1903-Parsing-CSV-Data-With-ColdFusion-s-CFHTTP-Tag.htm On Thu, 03 Jun 2010 14:27:08 -0400, Paul Henderson p...@smashedvision.com wrote: Thanks for the replies, it seems like I'm taking the wrong approach. Currently I am using

Loading an CSV

2009-12-22 Thread Phillip Vector
I have a CSV that looks like the following... 3270,5101650,Dewey, Cheatum Howe , 0 , 0 ,0.00,0.00,9.25,-9.25 3270,5101650,Phillip Vector, 34 , 3,161.00 ,92.97,79.25,61.76,17.50 3270,5101650,James P. Kardone JR., P.C. , 0 , 0 ,0.00,0.00,9.25,-9.25 I'm stuck on how

Re: Loading an CSV

2009-12-22 Thread Barney Boisvert
Use a CSV parsing library, rather than rolling your own. They take care of all that stuff for you. I've used http://ostermiller.org/utils/CSV.html in the past. If you really want to parse it yourself, you can use listToArray, and then iterate over the array and combine items that are quoted

Re: Loading an CSV

2009-12-22 Thread Claude Schneegans
Simply define an ODBC datasource using the Microsoft txt ODBC driver. Then requst the datasaource to get all records. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion

Re: Loading an CSV

2009-12-22 Thread Phillip Vector
Defining another datasource is not allowed in this. Yes, I know it's easier to do it that way, but unfortunally it's not an option here. On Tue, Dec 22, 2009 at 9:17 AM, Claude Schneegans schneeg...@internetique.com wrote: Simply define an ODBC datasource using the Microsoft txt ODBC driver.

Re: Loading an CSV

2009-12-22 Thread Phillip Vector
On Tue, Dec 22, 2009 at 9:09 AM, Barney Boisvert bboisv...@gmail.com wrote: Use a CSV parsing library, rather than rolling your own. They take care of all that stuff for you. I've used http://ostermiller.org/utils/CSV.html in the past. I took a look at that and didn't see anything

Re: Loading an CSV

2009-12-22 Thread Leigh
Defining another datasource is not allowed in this. What database(s) are you using? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive:

Re: Loading an CSV

2009-12-22 Thread Phillip Vector
Oracle, but I do not have permission to set up another datasource. So I need to do it by coding. On Tue, Dec 22, 2009 at 9:24 AM, Leigh cfsearch...@yahoo.com wrote: Defining another datasource is not allowed in this. What database(s) are you using?

Re: Loading an CSV

2009-12-22 Thread Barney Boisvert
Quoting is part of standard CSV, Ostermiller will take care of it. But you don't need to loop over every character. Once you have your array, you start combining when you find an item that begins with a quote, and you stop combining when you find an item that ends with a quote. In my example

Re: Loading an CSV

2009-12-22 Thread Phillip Vector
Ok.. I see what you are saying... Thanks. :) On Tue, Dec 22, 2009 at 9:26 AM, Barney Boisvert bboisv...@gmail.com wrote: Quoting is part of standard CSV, Ostermiller will take care of it. But you don't need to loop over every character.  Once you have your array, you start combining when you

Re: Loading an CSV

2009-12-22 Thread Leigh
Oracle Okay. I was thinking there might be options with an MS datasource. But as that is out of the question, I would go with Barney's suggestion. (Looks interesting. I will have to try it myself). ~| Want to reach

Re: Loading an CSV

2009-12-22 Thread Kevin Pepperman
[ '], multiple spaces) that it shouldn't, but would happily export the CSV anyway. DATA,BELLS WHISTLES, 'MOATS'; dragons ~ and gypsies ,more data I found out the app used the systems regional delimiter just like Excel does and a simple system change let us export it as PIPE (|) delimited. I

Writing query to a csv file

2009-12-09 Thread coldfusion . developer
I have a need to write the output from aquery to a csv file without headers. I've seen many examples where you can write the output from a query to a CSV file. However most of the examples I've seen require that the file be created first with headers and then then ourput from the query

Re: Writing query to a csv file

2009-12-09 Thread AJ Mercer
=ColdFusion_Documentationfile=0246.htmwrite will create the file append will add to it 2009/12/9 coldfusion.develo...@att.net I have a need to write the output from aquery to a csv file without headers. I've seen many examples where you can write the output from a query to a CSV file. However most

RE: Writing query to a csv file

2009-12-09 Thread Mark Kruger
)#,#TRIM(ed_email)#, And so on /cfsavecontent Cffile write=c:\blah.csv output=#trim(csv)#/ You can't use html (like br) in a csv.. Instead you use actual line breaks (chr(10) or chr(10)chr(13) for windows). But the code above will add those because they are created when you code and hit enter

Re: Writing query to a csv file

2009-12-09 Thread Phillip Duba
append will add to it 2009/12/9 coldfusion.develo...@att.net I have a need to write the output from aquery to a csv file without headers. I've seen many examples where you can write the output from a query to a CSV file. However most of the examples I've seen require that the file

fusebox layout adding to csv?

2009-12-04 Thread Glyn Jackson
Hi I have an old fusebox app i am working on. it outputs a csv file with data however the html (layout) is also getting added to the csv? anyone know why. cfsetting enablecfoutputonly=yes cfscript function cleanField(sField){ sField = (replace(sField,,,;,All

RE: fusebox layout adding to csv?

2009-12-04 Thread LRS Scout
What version of fusebox is it? You should be able to swap or suppress the layout around the csv content. -Original Message- From: Glyn Jackson [mailto:glyn.jack...@newebia.co.uk] Sent: Friday, December 04, 2009 9:12 AM To: cf-talk Subject: fusebox layout adding to csv? Hi I have

Re: Write HTML content after reading a CSV file

2009-10-05 Thread vidya yegnaraman
Oh, hell. ... cffile action=write file=#ExpandPath('csv.htm')# output=/table :-) On Thu, Oct 1, 2009 at 3:01 PM, Ian Skinner h...@ilsweb.com wrote: John, I need help with one another thing. I have a header and footer template which I need to use when I generate the html. How do I use

Re: Write HTML content after reading a CSV file

2009-10-05 Thread Larry Lyons
Oh, hell. John, I need help with one another thing. I have a header and footer template which I need to use when I generate the html. How do I use it. could you please provide me a sample? Thanks This is really basic stuff. I suggest you read up on cfinclude here

Re: Write HTML content after reading a CSV file

2009-10-03 Thread Larry Lyons
Oh, hell. Thank you John, will try this out. ;-) Another option is to use the file attribute of cfloop as in cfloop index = i file = absolute path and filename Do your html stuff here /cfloop hth, larry ~|

Re: Write HTML content after reading a CSV file

2009-10-01 Thread vidya yegnaraman
Probably 10 ways to do this. Here's one: 1. read in the csv file with cffile: http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_f_07.html#3545217 2. use this to make it into a query: http://cflib.org/udf/CSVToQuery 3. use this to dump the query as a table: http://cflib.org/udf

Re: Write HTML content after reading a CSV file

2009-10-01 Thread John M Bliss
ways to do this. Here's one: 1. read in the csv file with cffile: http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_f_07.html#3545217 2. use this to make it into a query: http://cflib.org/udf/CSVToQuery 3. use this to dump the query as a table: http://cflib.org/udf

Re: Write HTML content after reading a CSV file

2009-10-01 Thread Ian Skinner
John M Bliss wrote: cffile action=read file=#ExpandPath('csv.csv')# variable=thiscsv cffile action=write file=#ExpandPath('csv.htm')# output=table addnewline=true cfloop list=#thiscsv# index=thisline delimiters=#Chr(10)# cffile action=append file=#ExpandPath('csv.htm')# output=tr

Re: Write HTML content after reading a CSV file

2009-10-01 Thread John M Bliss
Oh, hell. ... cffile action=write file=#ExpandPath('csv.htm')# output=/table :-) On Thu, Oct 1, 2009 at 3:01 PM, Ian Skinner h...@ilsweb.com wrote: John M Bliss wrote: cffile action=read file=#ExpandPath('csv.csv')# variable=thiscsv cffile action=write file=#ExpandPath('csv.htm')#

Re: Write HTML content after reading a CSV file

2009-10-01 Thread vidya yegnaraman
Oh, hell. ... cffile action=write file=#ExpandPath('csv.htm')# output=/table :-) On Thu, Oct 1, 2009 at 3:01 PM, Ian Skinner h...@ilsweb.com wrote: Thank you John, will try this out. ;-) ~| Want to reach the ColdFusion

Write HTML content after reading a CSV file

2009-09-30 Thread vidya yegnaraman
Hi, I am a newbie to CF and I require help on this asap as I have to finish it before noon today. I have a CSV file which I have to read and write the output as HTML. This is because we would get this update twice a year and hence have to read and write as HTML.I was told. The CSV file

Re: Write HTML content after reading a CSV file

2009-09-30 Thread John M Bliss
Probably 10 ways to do this. Here's one: 1. read in the csv file with cffile: http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_f_07.html#3545217 2. use this to make it into a query: http://cflib.org/udf/CSVToQuery 3. use this to dump the query as a table: http://cflib.org/udf

Re: Exporting to csv. Every other row is empty.

2009-06-19 Thread Ray Meade
Awesome, that did it. Thanks a bunch Peter and have a great weekend. You've got: cfoutput query=qMembers [content] /cfoutput Which is: cfoutput query=qMembersNEWLINE[content]NEWLINE/cfoutput Hence why you're getting empty lines. You need your content to start on the same line

Exporting to csv. Every other row is empty.

2009-06-18 Thread Ray Meade
I've spent days trying to set up a simple export to a .csv file with no luck. cffile keeps saving it in html format so I'm using another solution I found online. It seems to work a lot better than cffile, but when I open the .csv file in MS Excel, every other row is blank. When I open

Re: Exporting to csv. Every other row is empty.

2009-06-18 Thread Peter Boughton
You've got: cfoutput query=qMembers [content] /cfoutput Which is: cfoutput query=qMembersNEWLINE[content]NEWLINE/cfoutput Hence why you're getting empty lines. You need your content to start on the same line as the opening cfoutput, or end the tag on the same line as the content.

CFHTTP / CSV / Hot Fix for YouTube

2009-06-12 Thread Adam Bridgeman
I've updated my server with the http://kb2.adobe.com/cps/406/kb406660.html hot-fix as I want to use the YouTube API. The problem is that a simple use of CFHTTP to read a .csv file that used to work no longer does. I get an 'Attribute validation error for tag cfloop' when I try to loop over

CSV File Upload. best way?

2009-03-04 Thread Glyn Jackson
Hi everyone, I have a CSV file I need to take the values out of and update a database with them. Any suggestion or best ways to do this? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date

Re: CSV File Upload. best way?

2009-03-04 Thread Pete Ruckelshaus
file (the .csv file) for its data. Performance will be MUCH better than read and parse with CF, and gives you the advantage of working with the data just like you would with any other recordset. I use this for a regular 35,000 record data import and it takes minutes compared to hours using

creating a CSV file from a CF Query

2008-11-05 Thread Toby King
I have a program - very simple to query a db and geta result set and save to a CSV verything seemend to work OK initially but when I run the program now I keep getting a message cannot download the .cfm file. Here is the code. cfquery name=getUsers datasource=#request.AppDS# SELECT * FROM

Re: creating a CSV file from a CF Query

2008-11-05 Thread Mike Chabot
If you get rid of cfconent then load the page in a browser does it render as a normal CF page such that if you view source you see exactly the content that you expect to see in a CSV file? If it is a text file then use a regular line break instead of a BR tag. -Mike Chabot On Wed, Nov 5, 2008

Re: creating a CSV file from a CF Query

2008-11-05 Thread Rob Parkhill
Geez, I always just use the cffile tag with the write and then append actions. and you can access a .csv through the web, so you can just use that extension. Rob On Wed, Nov 5, 2008 at 8:20 PM, Mike Chabot [EMAIL PROTECTED] wrote: If you get rid of cfconent then load the page in a browser does

CSV Import - Update with Commas in the Content

2008-10-20 Thread Michael Grove
I am trying to figure out how to update a sql table using a CSV file that has commas in the data fields. The long and Short of it, is that we have a SEO company rewriting our keywords, meta descriptions and titles for our product database. We were able to build a simple CSV export so

re: CSV Import - Update with Commas in the Content

2008-10-20 Thread Ryan Stille
or some other identifier) data that contains the delimiter, like this: [EMAIL PROTECTED],Joe,Smith,Joe, John Sons Inc. Then you need a data import routine that can correctly handle that. Most of the ColdFusion CSV handling code I come across does not handle this very well. -Ryan

Re: CSV Import - Update with Commas in the Content

2008-10-20 Thread Azadi Saryev
if the data does not conform to your requirements, or only import the rows that do conform, and notify the user of the rows that were not imported. hth Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Michael Grove wrote: I am trying to figure out how to update a sql table using a CSV file

Setting up CSV datasource in CF 8

2008-10-08 Thread Eric P
Hi, I'm trying to set up CSV datasource in CF 8. Looking at CSV data sources on some older CF instances (MX), I see the driver used is the ODBC Socket. When I try to do something similar in CF 8 the ODBC DSN drop down is blank, so I cannot finish configuring the data source. Any ideas? Thanks

  1   2   3   4   5   6   7   8   >