943,884 Members | Top Members by Rank

Ad:
  • ColdFusion Discussion Thread
  • Unsolved
  • Views: 2374
  • ColdFusion RSS
Sep 11th, 2009
0

CFGrid and checkboxes

Expand Post »
I have included the code. My problem is that I am always getting the error exception thrown and not caught despite adding cftry/cfcatch blocks. If I don't set selectmode="edit" and include OnChange my grid displays except I get the word false displayed instead of a checkbox.


ColdFusion Syntax (Toggle Plain Text)
  1. <cfgrid format="html" name="grid_Tables" pagesize="10" autowidth="true" striperows="yes" width = "99%" selectmode="edit" bind="CFC:qry_GetUser.getAllUsers({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{c fgridsortdirection})"onchange="cfc:qry_GetUser.editData({cfgridaction},{cfgridrow},{cfgridchanged})">
  2. <cfgridcolumn name="UserID" display="No"/>
  3. <cfgridcolumn name="opt" header="" type="boolean" width="46"/>
  4. <cfgridcolumn name="Name" header="Name" width="150" type="string_nocase" select="no" />
  5. <cfgridcolumn name="Email" header="EMail" width="150" type="string_nocase" select="no" />
  6. <cfgridcolumn name="RegistrationDate" header="Registration Date" width="150" type="string_nocase" select="no" />
  7. </cfgrid>
  8.  
  9. <cffunction name="editData" access="remote">
  10. <cfargument name="gridaction" required="yes">
  11. <cfargument name="gridrow" required="yes" type="Struct">
  12. <cfargument name="gridchanged" required="yes" type="Struct">
  13.  
  14. </cffunction>

The problem is that in edit mode I get an error thrown so the grid
doesn't display at all. I am wondering if I have a problem with:

onchange="cfc:qry_GetUser.editData({cfgridaction},{cfgridrow},{cfgridchanged})


Right now the editData function does nothing it is empty yet an error is still being thrown. I haven't been able to figure out where the error is being thrown. I have added catch/try blocks around the cfgrid as well as in the editData function but nothing is caught.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
akraus is offline Offline
3 posts
since Dec 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ColdFusion Forum Timeline: Sony Tries New Tactics to Gain eBook Marketshare
Next Thread in ColdFusion Forum Timeline: Simultaneous Data Update - "Record Locking"





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC