Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Thanks for a great forum. My problem was answered just by scrolling through previously solved problems. Great service!!..."

Geography

Where in the world do Tek-Tips members come from?
zamvil (Programmer)
7 Jun 12 3:37
thread232-1635949: How to pass parameter from ColdFusion page to ColdFusion Report

Hi, I want to use a cfreport but when access it displays variable undefined. I run the report with F12 in the CF Report builder and works but from a cfm page not works. I browse too the the cfreport and works too http://localhost/carsa/formatos/poliza.cfr?poliza=3247285

this is my code

<CFREPORT format="PDF" template="formatos/POLIZA.cfr"
filename="polizas\test.pdf"
overwrite="yes" >
<cfreportparam name="poliza" value="3247285">
</cfreport>

and this the error

Variable POLIZA is undefined.


The error occurred in C:\inetpub\wwwroot\CARSA\formatos\POLIZA.cfr: line 769

Any hint to resolve this problem? How Should I send the parameter thru the cfreportparam?

regards


zamvil (Programmer)
7 Jun 12 9:44
I already found the error. The error is in the query on the cfreport builder.

I had to tod the cf query like this with the cfqueryparam. Before I only had #nopoliza#


SELECT *
FROM dbo.DetallePoliza
WHERE dbo.DetallePoliza.PolizaGMX = <cfqueryparam value="#param.nopoliza#" cfsqltype="CF_SQL_INTEGER">

I hope it helps to other people.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close