?
Solved

CFGRID (mx7) - href for each column?

Posted on 2005-04-20
1
Medium Priority
?
813 Views
Last Modified: 2013-12-24
Can u help. I'm having fun creating cfgrid flash forms using CFmx7 and i need to modify my form below ...

<cfquery name="dispSearch" datasource="fred">
select * from opinions op join users u on u.userid = op.userid join opinion_categories oc on oc.opinion_category_id = op.opinion_category_id where opinion_title like '%bush%'
</cfquery>

<table width="605" align="left" border="0">
<tr>
<td width="605" align="left">
<cfform name="OpGrid">
<cfgrid name="grid" format="flash" width="605" height="400" query="dispSearch" selectmode="single" font="Verdana, Arial, Helvetica, sans-serif" fontsize="9"  rowheight="15" colheaderbold="yes">
<cfgridcolumn name="opinion_title" header="opinion topic" width="305">
<cfgridcolumn name="username" header="member" width="120">
<cfgridcolumn name="opinion_category_label" header="category" width="120">
</cfgrid>
</cfform>
</td>
</tr>
</table>


i need to allow the user to click the three columns to be taken to specific pages - based upon the record specific content of that record.

i.e. IF you click the cfgridcolumn name="opinion_title". ... i need to href the user to '/page_viewopinion.cfm?op=#dispSearch.opinion_id#'

i.e. IF you click  the cfgridcolumn name="username". ... i need to href the user to '/page_viewprofile.cfm?u=#dispSearch.userid#'

etc!

I can see the cfgridcolumn tag allows for href="URL" but it does not seem to want to work!

any ideas?
Richard
0
Comment
Question by:rcbuchanan
1 Comment
 
LVL 12

Accepted Solution

by:
mmc98dl1 earned 2000 total points
ID: 13829219
It involves using some Action Script.

http://www.cfform.com/flashforms/invoke.cfm?objectid=E2344892-4E22-1671-5496EEE941876E5E&method=full this should help you out.
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Suggested Courses

616 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question