>> <cfset rscol = request.tapi.db.columns(variables.table)> >> <cfmodule template="#request.tapi.xhtml()#"> >> <cfoutput> >> <tap:form> >> <cfloop query="rscol"> >> <cfswitch expression="#rscol.datatype#"> >> <cfcase value="text,ntext,clob,nclob"> >> <cfset type="textarea"> >> </cfcase> >> <cfdefaultcase> >> <cfset type="text"> >> </cfdefaultcase> >> </cfswitch> >> <input type="#type#" name="#rscol.name#" >> label="#rscol.name#" /> >> </cfloop> >> </tap:form> >> </cfoutput> >> </cfmodule> >> >> That's just a 2 minute writeup, so it doesn't >> account for the primary key (which should be >> a hidden field) or include converting >> foreign-keys to select boxes, but that's not >> much code either. >> > Yes, this is true, but still, the user has to > create this form, or does your frame work > generate a cfm file with this logic in it?
The above code is in essence a code-gen tool for creating forms automatically from database meta-data. So, while it's not currently built into the framework, I could build it in pretty quickly if that's the direction people want to go with it. The majority of the work is already done, so at this point it would just be a matter of adding a few lines of automation to generate those .cfm's. Or a moderate-to-large number of lines of automation if we're talking about creating a whole application to generate applications from say an xml doc like Joe was talking about with "Rocket". >> > Joe Rinehart has recently done this >> > with MG and I think it's a great step. >> > I hope the days of zip packages only >> > is limited. I think it's great that >> > I can view what changes Joe has made >> > to his framework. This makes me feel >> > like I have the ability to be more of >> > a part of it. >> >> I'll have to see about setting up >> subversion on my server at home. >> > It's pretty simple, if your interested, > I've got a couple of links that spell out > exactly how to set one up on Win32 machines. That'd be great. :) >> Several folks have also said that it seems >> long, so although I'm not real sure why 18 >> minutes is "long", I have been considering >> recording some shorter demo's more like >> the quickstart guide I wrote recently. >> > I'd split it into two. I'm not really a > "powerpoint" type of guy and initially I > watched it, but thought it was all going to > be slides, so I closed it. I watched it > all the way through only after you said it > had a demo. Truthfully, this is about the > third time I've watched it. All previous > times I cut it off about halfway because of > the slides. Aha! I see how you people are! :) Seriously tho, thanks for the insight. > The second part has more wow > factor than the first. Perhaps I should have reversed it so you'd have got the "wow" before closing it on the slides. :) > Just out of curiosity, how would the onTap > framework handle multiple record forms, say > you have a list of 10 products and you want > to be able to let people edit all of the > prices at one time. There aren't currently any built-in widgets to handle that specific scenario... If you can elaborate on how you'd like it to function, I can see what I can come up with. It rather reminds me of cfgrid -- for which I have yet to produce a widget actually... The framework has trees, tabsets, accordians, card-stacks and swap-boxes (I think PLUM calls these "chooser" controls, although I'm not certain of that). The grid control is the one complex interface widget I never got around to creating... For that matter the framework currently has an implementation of a flash slider that I'm not very happy with, and a broken attempt at designing a "suggest" interface (like the google-suggest interface) which I gave up on half-way through because it was taking too much time for a one-off interface that wasn't solving any immediate problems and will never meet accessibility guidelines. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212692 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

