Nigel-SA
asked on
Link to PDF using cfgridcolumn and href using hrefkey
Experts,
Trying to call a PDF in a directory which is the same name in table. The ECN variable does not have the .pdf extension included so I need to add it to be able to link it and view it. So the ???? needs to be variable ECN plus".pdf" - hope this makes sense?
<cfgrid format="html"...>
<cfgridcolumn name="ECN" header="PDF" width="55" href="MainHist/????" target="_blank" display="yes" hrefkey="ECN" select="false"/>
</cfgrid>
So if I run this by clicking on ECN 005252 the url looks likes this:
"MainHist/?????&CFGRIDKEY= 005252"
Thanks for your help
Trying to call a PDF in a directory which is the same name in table. The ECN variable does not have the .pdf extension included so I need to add it to be able to link it and view it. So the ???? needs to be variable ECN plus".pdf" - hope this makes sense?
<cfgrid format="html"...>
<cfgridcolumn name="ECN" header="PDF" width="55" href="MainHist/????" target="_blank" display="yes" hrefkey="ECN" select="false"/>
</cfgrid>
So if I run this by clicking on ECN 005252 the url looks likes this:
"MainHist/?????&CFGRIDKEY=
Thanks for your help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
<cfquery name="xxxx" datasource="yyy">
SELECT ECN, TARA_ID
FROM MRE_TARA_LIST
</cfquery>