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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link in a cfgrid

Status
Not open for further replies.

countdrak

Programmer
Jun 20, 2003
358
US
Does anyone know how I can put links that take you to a page in [red]FLASH[/red] cfgrid . I know you can use href in cfgrid Applet, but how do I achieve the same thing in a flash cfgrid. href is only supported in applet cfgrid.

Thanks a lot.
 
Here is an example I found on so I hope it helps. I was able to integrate it into my code and make it work.

<cfif isDefined("url.user_id")>
<cfoutput>
<p>The selected userid is: #url.user_id#</p>
</cfoutput>
</cfif>
<cfscript> myData = queryNew("id,name");
queryAddRow(myData);
querySetCell(myData, "id", "a001");
querySetCell(myData, "name", "John Doe");
queryAddRow(myData);
querySetCell(myData, "id", "a002");
querySetCell(myData, "name", "Jane Doe");
queryAddRow(myData);
querySetCell(myData, "id", "b001");
querySetCell(myData, "name", "Mike Smith");
queryAddRow(myData);
querySetCell(myData, "id", "c001");
querySetCell(myData, "name", "Bob Jones");
</cfscript>
<cfform format="Flash" width="500" height="400">
<cfgrid name="linkGrid" query="myData"
onchange="getUrl('index.cfm?user_id=' + linkGrid.dataProvider[linkGrid.selectedIndex]['id']);">

<cfgridColumn name="id" header="userid">
<cfgridColumn name="name" header="User Name">
</cfgrid>
</cfform>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top