• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

link cfgrid

Explorer ,
Apr 17, 2006 Apr 17, 2006

Copy link to clipboard

Copied


Hello,
I'm using cfgrid for my application. I had a question, is there a way to link cfcolumn to certain page?

The link would be:
<a href="detail.cfm">details</a>


Thanks in advance!!
TOPICS
Advanced techniques

Views

489

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 17, 2006 Apr 17, 2006

Copy link to clipboard

Copied

you mean the:

href = "URL"
hrefKey = "column_name"
target = "URL_target"
appendKey = "yes" or "no"
highlightHref = "yes" or "no"

parameters found on the http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=C... page?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 17, 2006 Apr 17, 2006

Copy link to clipboard

Copied

Yes, i tried that but nothing happens when i click on the column.
I've this in my script:

<CFGRIDCOLUMN
NAME="subject"
HEADER="Subject" headeralign="left" dataalign="left"

WIDTH="100" bold="no" italic="no"
display="yes" headerbold="no" headeritalic="no"
values="#qGetMessages.subject#"

href="detail.cfm?msgnumber=#qGetMessages.messagenumber#"
hrefKey = "subject"
>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 17, 2006 Apr 17, 2006

Copy link to clipboard

Copied

Yes, but as this livedoc states, it will only work with cfgrid format="applet".
If you run the following example, notice how the value of the "Course_ID" cell is appended to the URL string automatically:

<cfquery name = "GetCourses" dataSource = "cfdocexamples">
SELECT Course_ID, Dept_ID, CorNumber,
CorName, CorLevel
FROM CourseList
ORDER by Dept_ID ASC, CorNumber ASC
</cfquery>

<cfform>


<cfgrid name = "FirstGrid" format="applet"
height="320" width="580"
font="Tahoma" fontsize="12"
query = "GetCourses">
<cfgridcolumn name="Course_ID" href=" http://www.macromedia.com/cfusion/webforums/forum/index.cfm?forumid=1" header="Course ID">
<cfgridcolumn name="Dept_ID" header="Dept ID">
<cfgridcolumn name="CorNumber" header="Course Number">
<cfgridcolumn name="CorName" header="Course Name">
<cfgridcolumn name="CorLevel" header="Course Level">
</cfgrid>
</cfform>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 17, 2006 Apr 17, 2006

Copy link to clipboard

Copied

LATEST
so this means it will not work with flash forms? Oh man, i just converted my application for nothing.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation