Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfgrid link to record

Status
Not open for further replies.

oaklandar

Technical User
Feb 12, 2004
246
US
I am trying to show CFGRID and have the ability to link to a record:

Code:
<cfform action="theGridPage.cfm" enablecab="Yes" name="myForm">
	<cfgrid name="mygrid"  colheaderbold="Yes" query="QueryOne" sort="Yes" griddataalign="left" gridlines="yes" rowheaders="yes" colheaders="Yes" selectmode="edit" picturebar="Yes"> 
	                                                
	<cfgridcolumn name="ID" header="ID" href="test.cfm?ID=ID" dataalign="LEFT" select="No" display="Yes" type="STRING_NOCASE">

test.cfm page
Code:
select * from tableOne
where ID = #url.id#

Please advise because it keeps showing the first record only.
 
Should this:

<cfgridcolumn name="ID" header="ID" href="test.cfm?ID=ID" dataalign="LEFT" select="No" display="Yes" type="STRING_NOCASE">

Be this instead:

<cfgridcolumn name="ID" header="ID" href="test.cfm?ID=#ID#" dataalign="LEFT" select="No" display="Yes" type="STRING_NOCASE">

I'm not too familiar with the CFGRID tag, so I don't really know what else might be causing the problem.
Hope that helps,
MG
 
I already tried that and it didnt work. Any other advise?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top