• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfsavecontent WEIRD situation

Participant ,
Mar 17, 2009 Mar 17, 2009

Copy link to clipboard

Copied

Hi Community!

I have the following code:

<cfquery name="getFields" datasource="#application.dsn#">
select annualordcnt,annualordtot,campaign,email,firstname,firstordamt,firstordd,
htdordcnt,htdordtot,lastname,lastordamt,lastordd,postalcode
from yesmail
</cfquery>
<cfset test = 0/>
<!---<cfdump var="#getFields#"/><cfabort/>--->
<cfsavecontent variable="fileContent">
<cfloop query="getFields">
<!---<cfif #getFields.campaign[idx]# neq ''>
<cfset test = test + 1/>
</cfif>--->
<cfoutput> #Trim(getFields.email)#|#Trim(getFields.firstname)#|#Trim(getFields.lastname)#|#Trim(getFields.postalcode)#|#Trim(getFields.campaign)#|#DateFormat(getFields.firstordd,'MM/DD/YYYY')#|#getFields.firstordamt#|#DateFormat(getFields.lastordd,'MM/DD/YYYY')#|#getFields.lastordamt#|#getFields.htdordcnt#|#getFields.htdordtot#|#getFields.annualordcnt#|#getFields.annualordtot##Chr(13)##Chr(10)#
</cfoutput>
</cfloop>
</cfsavecontent>

I know that in the campaign field I have over 92,000 records different thatn space or null. However when I generate my export file there are only 21,000 campaign fields with data.

I am really confused on this one!

I'd appreciate any help!

Thanks!
Ysais.
TOPICS
Advanced techniques

Views

410

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Mar 19, 2009 Mar 19, 2009
I solved this issue!

Thanks to those who at least took the time to read my post!

Votes

Translate

Translate
Participant ,
Mar 17, 2009 Mar 17, 2009

Copy link to clipboard

Copied

<cfquery name="getFields" datasource="#application.dsn#">
select annualordcnt,annualordtot,campaign,email,firstname,firstordamt,firstordd,
htdordcnt,htdordtot,lastname,lastordamt,lastordd,postalcode
from yesmail
</cfquery>

That's the code ofrmy query that I missed at the top :-) Sorry!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 19, 2009 Mar 19, 2009

Copy link to clipboard

Copied

LATEST
I solved this issue!

Thanks to those who at least took the time to read my post!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation