I've gotten the form side to work, however what it posts to the action page
is a mess..
As follows:
Form Fields:
FIELDNAMES=SUBMIT,__CFGRID__NEWCONTENT__GRID_TABLES
SUBMIT=Approve Articles
__CFGRID__NEWCONTENT__GRID_TABLES=__CFGRID__EDIT__=5OD_Content_IDYOD_Cont
ent_TitleYOD_Content_typeYUNAMEYapproveY1UBDEB88FF-9776-9A52-CA86-
1C187D1FC131BDEB88FF-9776-9A52-CA86-1C187D1FC131IntroductionsIntroduction
s11adminadmintruefalse
Here's the form code:
<cfform action="actions/act_processContent.cfm?proc_type=approve"
method="post" name="newContent" preloader="no" format="flash" height="550"
width="700" skin="halosilver">
<cfgrid name="grid_Tables" height="500" width="700"
query="getContentData" appendkey="yes" griddataalign="left" gridlines="yes"
selectmode="edit" enabled="yes" visible="yes" format="flash" pagesize="7">
<cfgridcolumn name="OD_Content_ID" display="no" />
<cfgridcolumn name="OD_Content_Title" header="Title" >
<cfgridcolumn name="OD_Content_type" header="Type" >
<cfgridcolumn name="UNAME" header="User" >
<cfgridcolumn name="Approve" header="Approve" select="yes"
display="yes" type="boolean" values="1"/>
</cfgrid>
<cfformgroup type="horizontal" visible="yes" enabled="yes">
<cfformitem type="spacer"/>
<cfinput type="submit" name="submit" value="Approve
Articles">
<cfformitem type="spacer"/>
</cfformgroup>
</cfform>
--
Scott Stewart
ColdFusion Developer
4405 Oakshyre Way
Raleigh, NC 27616
(h) 919.874.6229 (c) 703.220.2835
-----Original Message-----
From: Scott Stewart [mailto:[email protected]]
Sent: Monday, March 02, 2009 2:55 PM
To: cf-talk
Subject: CFGRID (Flash) I need a checkbox as input
Hey all
I'm displaying a bunch of data in a Flash CFGRID.. At the end of the row I'd
like to add a column called "Approve". Which would be a checkbox.
I have two possible scenarios for updating the DB
1) I click the check box and the action page is called, the db is updated
and the CFGRID re-rendered with new data.
2) I check all the articles that need to be approved hit a submit button and
process then go about my business.
Problem; how do I get the CFGRID to render an active checkbox. I can only
seem to get the check box to render if I bind it to the "IsApproved" column
returned from the query
But it's not clickable.
Any thoughts/suggestions?
--
Scott Stewart
ColdFusion Developer
4405 Oakshyre Way
Raleigh, NC 27616
(h) 919.874.6229 (c) 703.220.2835
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320036
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4