| | |
report builder
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jan 2008
Posts: 2
Reputation:
Solved Threads: 0
Hi,
I am trying to pass several cf calculated variables (for EACH record in my table) to cf report builder and I got the same repeated value showing up for that many records on my report (as if I had only one record).Here are what I have tried:
template.cfm
<cfloop>
.......
<cfset c1 = val(#myquery.f1#) + val(#myquery.f2#)>
<cfset c2 = val(#myquery.f3#) + val(#myquery.f4#)>
<cfset c3 =...........................>
.........
</cfloop>
<cfform name="report" action="../index.cfm?template=report" method="post">
<cfinput type="submit" name="Report" value="Download Report">
<cfoutput>
<cfinput TYPE="hidden" VALUE="#c1#" NAME="col1">
<cfinput TYPE="hidden" VALUE="#c2#" NAME="col2">
<cfinput TYPE="hidden" VALUE="#c3#" NAME="col3">
</cfoutput>
</cfform>
report.cfm
<cfreport template="testrpt.cfr" format="pdf" overwrite="yes" >
<cfreportparam name="rpt1" value="#col1#">
<cfreportparam name="rpt2" value="#col2#">
<cfreportparam name="rpt3" value="#col3#">
testrpt.cfr
input parameter:
rpt1
rpt2
rpt2
the report supposed to look like this
c1 c2 c3
22 31 75
54 77 59
46 36 42
......
how do I fix this? thanks
I am trying to pass several cf calculated variables (for EACH record in my table) to cf report builder and I got the same repeated value showing up for that many records on my report (as if I had only one record).Here are what I have tried:
template.cfm
<cfloop>
.......
<cfset c1 = val(#myquery.f1#) + val(#myquery.f2#)>
<cfset c2 = val(#myquery.f3#) + val(#myquery.f4#)>
<cfset c3 =...........................>
.........
</cfloop>
<cfform name="report" action="../index.cfm?template=report" method="post">
<cfinput type="submit" name="Report" value="Download Report">
<cfoutput>
<cfinput TYPE="hidden" VALUE="#c1#" NAME="col1">
<cfinput TYPE="hidden" VALUE="#c2#" NAME="col2">
<cfinput TYPE="hidden" VALUE="#c3#" NAME="col3">
</cfoutput>
</cfform>
report.cfm
<cfreport template="testrpt.cfr" format="pdf" overwrite="yes" >
<cfreportparam name="rpt1" value="#col1#">
<cfreportparam name="rpt2" value="#col2#">
<cfreportparam name="rpt3" value="#col3#">
testrpt.cfr
input parameter:
rpt1
rpt2
rpt2
the report supposed to look like this
c1 c2 c3
22 31 75
54 77 59
46 36 42
......
how do I fix this? thanks
![]() |
Similar Threads
- Looking for Freelancers (Web Development Job Offers)
- PHP Programmer needed on contract basis (Web Development Job Offers)
- Coldfusion report (ColdFusion)
- Lookign for project based jobs (PHP)
- ColdFusion Report Builder - Page Numbering (ColdFusion)
- C++ Builder 6 and Crystal Report (C++)
- Coldfusion MX Report Builder Pagination (ColdFusion)
- Report Builder Embedding HTML (ColdFusion)
Other Threads in the ColdFusion Forum
- Previous Thread: Catching Attribute Validation Errors
- Next Thread: Array wrapped SQL - single Quotes error
Views: 1195 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for ColdFusion





