DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   ColdFusion (http://www.daniweb.com/forums/forum19.html)
-   -   extract values out of arraytolist (http://www.daniweb.com/forums/thread104268.html)

tcv56 Jan 10th, 2008 1:34 pm
extract values out of arraytolist
 
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
..............

............


All times are GMT -4. The time now is 4:50 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC