Er.... Too much coding today for my brain .....
I am trying to optimise some code and have lost the plot
completely.........
I need the code to return all the report types Panda, Plasc, KS2, etc etc.
The user then clicks on the report type and by now a collection of
information has been passed that will allow the link to be dynamically
created. The ext variable is cased from the report name (cos I know the
extensions for each) and added to the link. Well thats the idea anyway.
However report_name doesn't actually exist until the user clicks the link.
How can I make this happen without another trip to another page.
Regards - Paul
<cfif isdefined("url.school")>
<CFQUERY NAME="get_Phase_ID"
DATASOURCE
="WebUserDSN">
SELECT *
FROM Phases
WHERE Phase = '#url.phase#'
</CFQUERY>
<CFQUERY NAME="get_report_type"
DATASOURCE
="WebUserDSN">
SELECT *
FROM report_type
WHERE Phase_Relations like ('%
#get_Phase_Id.phase_ID#%')
ORDER BY Report_Name
</CFQUERY>
<cfswitch expression="
#get_report_type.report_name#">
<cfcase value="Panda">
<cfset ext=".pdf">
</cfcase>
</cfswitch>
<tr>
<td valign="top" width="580" align="center" style
="font-family: Arial; font-size: 10pt">
<br><!--mstheme--><font face="arial,
Arial, Helvetica" size="2">
Please select a report from the list
below<p></p>
<cfoutput query="get_report_type">
<a href
="http://marge/prfmrep/#url.year#/#url.phase#/#report_name#/#url.school##ext#">"
>#Report_Name#</a><br>
</cfoutput>
</font>
<p> </p>
<!--mstheme--></font>
</td>
<center>
</tr>
</cfif>
*************************************************************************************************
The information contained within this e-mail (and any attachment) sent by Birmingham
City Council is confidential and may be legally privileged. It is intended only for
the named recipient or entity to whom it is addressed. If you are not the intended
recipient please accept our apologies and notify the sender immediately, or telephone
+(44) 121 303 6666. Unauthorised access, use, disclosure, storage or copying is not
permitted and may be unlawful. Any e-mail including its content may be monitored and
used by Birmingham City Council for reasons of security and for monitoring internal
compliance with the office policy on staff use. E-mail blocking software may also be
used. Any views or opinions presented are solely those of the originator and do not
necessarily represent those of Birmingham City Council. We cannot guarantee that this
message or any attachment is virus free or has not been intercepted and amended.
*************************************************************************************************
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]