How to pass an URL with cfgrid (forget my other post with cfgridrow)
Basically I am using cfgrid to display a list of computer from a query. I would lke to be able to; when I click on the first colum in any row to display a cfm page that will be able to display relevant information to a specific computer. I will be passing parameter with theurl parameter. Theses parameter are generated by my original query.
here is the code i am trying to use. I didn't include the href.
This code works OK. The 2 variables I am trying to send via URL are #machine# which is created from a query and URL.Hotel which is was send thru the URL when I opened this page. (the cfoutput tag were remove )
<!---<table border="1"
<TR>
<TD> PC Name </TD>
<TD> IP Address </TD>
<TD> User Name </TD>
</TR>
<cfoutput query="listRet">
<tr>
<td><a href="ListApp.cfm?pc=#URLEncodedFormat(Trim(Machine))#&hotel=#URL.hot el#">#Machine#</a></td>
<td>#IPAddress#</td>
<td>#Description#</td>
</tr>
</cfoutput>
</table>--->
Now can I do the same with a cfgrid and cfgrid row
<cfform format="flash">
<cfgrid
query="listRet"
name="gridPc"
height="400"
width="1000">
<cfgridcolumn name="Machine" header="PC Name" headerbold="true" headertextcolor="blue" width="120">
<cfgridcolumn name="Description" header="User Name" headerbold="true" headertextcolor="blue" width="250">
<cfgridcolumn name="IPAddress" header="IP Address" headerbold="true" headertextcolor="blue" width="120">
<cfgridcolumn name="SystemName" header="Model" headerbold="true" headertextcolor="blue" width="275">
</cfgrid>
</cfform>
Thanks
