Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

report

Status
Not open for further replies.

GCM06

Programmer
Mar 21, 2006
10
0
0
CA
Hi guys I am using the coldfusion report builder and i'm am trying to create a function that returns a string. when i run the report it doesn't generate. i know the problem is my cfif, b/c i have tried displaying just the string and it works. I have also tried it w/out the # , '' "". Any ideas?

<cffunction name = "test">
<cfargument name="somevar">
<cfif #query.Witnessed# IS 'Y'>
<cfset somevar="Yes">
</cfif>
<cfreturn somevar>
</cffunction>

this is the call on the report report.test()
Thanks in advance
GC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top