Hello,
I am writing a web based email app that uses the flash capabilities in Coldfusion. In this particular instance I am having problems with the behavior of cfgrid. First I have a checkbox which is intended to be clickable so that the user can choose messages and delete them or move them to another message folder. Then if the user clicks on the subject line cell of the grid the user should be taken to another screen (via a specific url) where they can view the message. How do I accomplish this behavior? The correct answer is worth 500 points.
Thanks,
Rick
Here is my code as you can see I have a onchange even commented out, but if I enable it (this should cause the user to go to the view mail cfm) the flash doesnt render. But it will work if I take the grid out of edit mode:
<cfform name="#application.applica
tionname#_
navForm" timeout=20 format=flash width=590 height=490 skin="haloBlue" >
<cfformgroup type="tabnavigator" name = "mytab" id="mytab">
<cfformgroup type="page" label="Inbox" id= "kt1" enabled = "true">
<cfformgroup type="hbox">
<cfgrid
name="Inbox"
<!----onchange="getUrl('ma
nager.cfm?
where=newc
ampaign&wh
ere2=viewc
ampaign&id
=' + mailstats.dataProvider[mai
lstats.sel
ectedIndex
]['id']);"
---->
height=400
width=550
autoWidth=yes
align=center
colheaderfont=verdana
colheaderfontsize=10
colheaderbold=yes
font=verdana
fontsize=10
rowheaders=no
selectmode="edit"
<!----query="getemailheade
rs"---->
notSupported="ExacTrack Requires Macromedia Flash. Please install Macromedia Flash.">
<cfgridcolumn Name="select" Header="" width="35" Type="Boolean" dataalign=center>
<cfgridcolumn name="From" header="From" headeralign=center width=105>
<cfgridcolumn name="Subject" header="Subject" headeralign=center width=330>
<cfgridcolumn name="Date" header="Date" headeralign=center width=75>
<cfgridcolumn name="id" header="id" width=10>
<cfloop query=getemailheaders>
<cfset rdate = dateformat(date,'mm/dd/yyy
y')>
<cfgridrow data="0,#from#,#subject#,#
rdate#,#id
#">
</cfloop>
</cfgrid>
</cfformgroup>
</cfformgroup>
</cfformgroup>
</cfform>