RE: Report Builder - creating a function that adds X to a variable
Thanks! I ended up creating a request scoped variable. Works great! -Original Message- From: Daniel Roberts [mailto:[EMAIL PROTECTED] Sent: Monday, February 25, 2008 2:06 PM To: CF-Talk Subject: Re: Report Builder - creating a function that adds X to a variable I believe the easiest way to accomplish this is to save the value to a shared scope. To allow multiple reports to be created at once, pass a reportID (UUID) param to the report then use that ID in storing the value to the shared scope variable. You could then have a parameter to your function "reportID" and in the function keep "nextAudit" (if I understand your code correctly) in the variable "session.nextAudit[arguments.reportID]". ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299873 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Report Builder - creating a function that adds X to a variable
I believe the easiest way to accomplish this is to save the value to a shared scope. To allow multiple reports to be created at once, pass a reportID (UUID) param to the report then use that ID in storing the value to the shared scope variable. You could then have a parameter to your function "reportID" and in the function keep "nextAudit" (if I understand your code correctly) in the variable "session.nextAudit[arguments.reportID]". ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299854 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Report Builder - creating a function that adds X to a variable
> > param.voids)#> > #param.startAudit# > Woops, I meant: #param.startAudit# Dominic -- Blog it up: http://fusion.dominicwatson.co.uk ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299812 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Report Builder - creating a function that adds X to a variable
> > #report.calcNextAudit(param.startAudit, param.voids)# Not sure I entirely get you, but I'm assuming the above line of code is within a loop within a cfquery block? Perhaps something like this is what you are after: #param.startAudit# This way, the next time the code comes around, your startAudit value shouldn't get stuck. HTH Dominic -- Blog it up: http://fusion.dominicwatson.co.uk ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299811 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4