As the resident Ext JS geek, there's nothing intrinsically wrong with the code that you posted. There might be a problem in the showEditWin() method that you did not post. In fact, my complete wild-ass guess would be that the showEditWin() method is calling an Ext JS window that needs to have a show() method run on it. (Ext JS windows do not autoshow).
I'll also say that Cameron is correct in his assessment. CFGrid (and all of the CF Ux constructs are...um..."not scottish"). You really should stick with a pure 3-tiered architectural approach. Here's a few examples of using "pure" Ext JS front-end grids that we've developed @ Fig Leaf Software: http://www.naccho.org/toolbox/ http://www.naccho.org/topics/modelpractices/search.cfm http://webapps.figleaf.com/patientchart/#research/clinicaltrials http://webapps.figleaf.com/patientchart/#research/hospitalstats http://webapps.figleaf.com/spendingportal/ On Thu, Mar 5, 2015 at 8:01 AM, Charlie Arehart <char...@carehart.org> wrote: > Mike, before folks might dig any further into this(and though this may > already be an obvious thing you've checked), have you confirmed that the > problem isn't something simpler, like the CFIDE/scripts folder being > blocked or not there in the site you're using? > > You mention confirming there are no errors in the js console. Are you also > using any sort of browser dev tool to see/confirm that there are no 404's > on the page? If the needed JS could not be downloaded, it would of course > throw no error in the JS console. :-) > > It's at least worth checking and letting us know. And if that's not it, > then I'd say this is rather esoteric stuff. If you don't get an answer here > you may want to raise it on the Adobe CF forums to get a wider audience, > including (but not guaranteed to included) Adobe folks. > > Hope that's helpful. > > /charlie > > -----Original Message----- > From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Mike Staver > Sent: Thursday, March 05, 2015 12:10 AM > To: discussion@acfug.org > Subject: [ACFUG Discuss] ColdFusion 11 upgrade breaking ExtJS everywhere > > I wrote some code a few years back, and I have very little ExtJS coding > experience outside of using what shipped with CF 9 & 10. I was disappointed > to discover that most of one of my pages was broken via the upgrade to CF > 11. I did some digging, and discovered that CF 11 ships with ExtJS 4.1. I > don't remember what CF 10 was running, but this code used to work that is > associated with a CFGrid object: > > // add the 2 custom buttons to the toolbar and init the grid > listener > function init() { > Ext.onReady(function () { > var grid = ColdFusion.Grid.getGridObject("Players"); > var tbar = ColdFusion.Grid.getTopToolbar('Players'); > tbar.add({xtype: 'button', text: "Add Player", handler: > onAdd }); > tbar.add({xtype: 'tbseparator'}); > tbar.add({xtype: 'tbfill'}); > tbar.addButton({xtype:'button', text:"Delete Player", > handler:onDelete }); > ColdFusion.Grid.showTopToolbar('Players'); > grid.addListener("rowdblclick", showEditWin); > }) > } > > The part that doesn't work is the listener for the double clicking of > rows. Basically, nothing happens now when I double click a row. I've > searched for 2 days now trying to wrap my head around the Ext documentation > to understand what I'm doing wrong. No errors are thrown on the JS console, > but nothing happens either. I've found this: > > http://docs.sencha.com/extjs/4.1.3/#!/api/Ext.grid.Panel > > They show the addListener function, and to be honest, I'm not sure what > has changed about it or what I'm currently doing wrong. Does anything > obvious jump out to anyone? > > > > -- Regards, Steve Drucker Founder / President Fig Leaf Software http://www.figleaf.com http://training.figleaf.com Acquia, Adobe, Brightcove, Ektron, Google, Paperthin, Sencha Consulting/Training/Sales/Support "We've got you covered" Fig Leaf Software is a Service-Disabled Veteran-Owned Small Business (SD-VOSB) on GSA Schedule