•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 361,924 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,705 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser:
Views: 690 | Replies: 0
![]() |
•
•
Join Date: Jan 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Hi all,
Since i did not get any response from my previous question (posted few days ago) , let me ask you all another question and hopefully (if I get some answers) this would help the other.
I passed a list of some calculated variables from my cf template to rpt builder using ArrayToList and I have no problem here. How do I extract those values off the list in rpt builder?
mytemplate.cfm
<cfset temp = ArraySet(testarray,1,3,"")>
<cfset testarray[1] ="11">
<cfset testarray[2] ="13">
<cfset testarray[3] ="31">
<cfset abc = ArrayToList(testArray)>
..............................
<cfform name="report" action="../index.cfm?template=report" method="post">
<cfinput type="submit" name="Report" value="get rpt">
<cfoutput>
<cfinput TYPE="hidden" VALUE="#abc#" NAME="array">
</cfoutput>
report.cfm
<cfreport template="myrpt.cfr" format="pdf" overwrite="yes" >
<cfreportparam name="c1" value="#array#">
myrpt.cfr
importparam
c1
the rpt I want to do is something like this
c1 c2 c3
15 32 59
..............
............
Since i did not get any response from my previous question (posted few days ago) , let me ask you all another question and hopefully (if I get some answers) this would help the other.
I passed a list of some calculated variables from my cf template to rpt builder using ArrayToList and I have no problem here. How do I extract those values off the list in rpt builder?
mytemplate.cfm
<cfset temp = ArraySet(testarray,1,3,"")>
<cfset testarray[1] ="11">
<cfset testarray[2] ="13">
<cfset testarray[3] ="31">
<cfset abc = ArrayToList(testArray)>
..............................
<cfform name="report" action="../index.cfm?template=report" method="post">
<cfinput type="submit" name="Report" value="get rpt">
<cfoutput>
<cfinput TYPE="hidden" VALUE="#abc#" NAME="array">
</cfoutput>
report.cfm
<cfreport template="myrpt.cfr" format="pdf" overwrite="yes" >
<cfreportparam name="c1" value="#array#">
myrpt.cfr
importparam
c1
the rpt I want to do is something like this
c1 c2 c3
15 32 59
..............
............
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ColdFusion Marketplace
Other Threads in the ColdFusion Forum
- Previous Thread: Array wrapped SQL - single Quotes error
- Next Thread: Pick a current date in drop down


Linear Mode