Link to home
Start Free TrialLog in
Avatar of Nigel-SA
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

ASKER CERTIFIED SOLUTION
Avatar of nmarano
nmarano

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Nigel-SA
Nigel-SA

ASKER

nmarano - thanks - almost there. How do I cfset a variable that is within a query?

<cfquery name="xxxx" datasource="yyy">
                   SELECT  ECN, TARA_ID
                    FROM MRE_TARA_LIST
</cfquery>