Welcome to Dream.In.Code
Getting Help is Easy!

Join 99,783 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,537 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Query in coldfusion report builder

 
Reply to this topicStart new topic

Query in coldfusion report builder, how to write two query in coldfusion report builder?

eera
post 31 Jan, 2008 - 12:26 AM
Post #1


New D.I.C Head

*
Joined: 7 Jan, 2008
Posts: 3

Hi,

I have a problem, on how to write two query in coldfusion and how to call in cfreport tag?For example:


<cfquery name="sop_tm" datasource="jol">
select initcap(a.name) as name, initcap(a.phone_owner) as phone_owner, initcap(b.addr_1) as addr_1,initcap(b.addr_2) as addr_2, initcap(b.addr_3) as addr_3,
b.postcode,initcap(b.town) as town,a.phone_no as phone_no, c.coverage as coverage
from jar_adsl_master a, jar_customer b, jar_adsl_booking c
where a.cust_id = b.cust_id
and a.book_id = c.book_id
and a.batch_no = #batch_no#
</cfquery>

<cfquery name="holiday" datasource="jol">
select holiday_date, holiday_range from tholiday
</cfquery>

<CFREPORT format="pdf" permissions="allowmodifycontents" template="SOP_FORM.cfr"
query="#sop_tm#" />


-->The problem is how can i call query "holiday" in cfreport tag above?
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 7/25/08 01:14AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month
-->