Re: Journaling
cfdump var=#FORM# cfdump var=#qName# - Original Message - From: Stephens, Larry V steph...@indiana.edu To: cf-talk cf-talk@houseoffusion.com Sent: Thursday, August 19, 2010 7:02 AM Subject: ***SPAM*** Journaling The project I'm working on requires Journaling, i.e., track changes made to the data. I'm hoping to do this as a blackbox. My beginning plan is to duplicate the query that loads the form to a session variable. Then, when the form submits, compare the submitted data to the original data and write any changes to a journal table. Since the form may contain elements that are not in the table, it seems to me I need to walk the form getting the name of each FORM.Item and then seeing if that item exists in the duplicated query (I'm giving form elements the same name as the table row elements; that, of course, doesn't apply if I use, say, a hidden input for something that doesn't have a corresponding row element). When you cfdump a query or a form it seems there is some kind of structure there that I should be able to walk for this info but the syntax escapes me. Any ideas? Larry Stephens ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336407 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: setting cf var with javascript
Take a look @ the cfajaxproxy tag. http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_a-b_3.html - Original Message - From: Yuliang Ruan yuliangr...@hotmail.com To: cf-talk cf-talk@houseoffusion.com Sent: Friday, February 05, 2010 10:31 AM Subject: ***SPAM*** Re: setting cf var with javascript I'm looking to add three work days to the current date. set this in a var and update the record in the database. after the JS actions of adding work days, the JS would need to submit the new data back to a CFM/CFC to be processed as a form, url, or function argument to update into the db. the server side language CF and the client side language JS have really no knowledge of each other. as far as CF is concerned, JS code is just text output. CF has no knowledge of how JS code is run.conversely also true of JS. All JS knows is that it's invoking either a form/page submit to a URL. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330436 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: setting cf var with javascript
Kule, but I'd move the starting cfoutput tag, no need to wrap your logic in it:) - Original Message - From: Keith McGee kpmc...@frontiernet.net To: cf-talk cf-talk@houseoffusion.com Sent: Friday, February 05, 2010 12:09 PM Subject: ***SPAM*** Re: setting cf var with javascript this is what I wanted to do, Thanks I figured it out cfoutput cfset ThisDate = now() cfset WorkingDays = 0 cfloop from=1 to=5 index=i cfset ThisDate = DateAdd('d', 1, ThisDate) cfif DayOfWeek(ThisDate) GT 1 AND DayOfWeek(ThisDate) LT 7 cfset WorkingDays = WorkingDays + 1 cfif WorkingDays EQ 3 cfbreak /cfif /cfif /cfloop ThisDate: #DateFormat(ThisDate, 'd-mmm-yy')#br /cfoutput ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330446 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfgrid flash href
You might consider getting the underlying ext using ColdFusion.Grid.getGridObject(myGrid) and attaching to appropriate logic to do this. Of course you would have to use an html grid in lieu of flash. Maybe something like this? cfform name=rwsGrid format=html action=## cfgrid name=rwsGrid attributeCollection=#Application.Settings.GRIDFORMAT# pageSize=12 bind=cfc:CoreComponents.searchService.RWSgetData({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},{rwsfindForm:l...@none},{rwsfindForm:date_fl...@none},{rwsfindForm:date_ceil...@none},{rwsfindForm:opera...@none},{rwsfindForm:st...@none},{rwsfindForm:status_va...@none},{rwsfindForm:sva...@none}) selectonload=true cfgridcolumn name=CLIENT_NUM header=Loc## width=40 cfgridcolumn name=NUMBER header=Rws## width=50 cfgridcolumn name=DOC_NUM header=Doc## width=55 cfgridcolumn name=DOCTYPE header=Type width=80 cfgridcolumn name=RELATED_CT header=Related width=54 cfgridcolumn name=EST_COST header=Est$ width=85 cfgridcolumn name=JOB_NUM header=Job## width=66 cfgridcolumn name=PROJECT_NUM header=Proj## width=66 cfgridcolumn name=STREET header=Proj Street width=149 cfgridcolumn name=PROJECT_NAME header=Proj Name width=149 cfgridcolumn name=PTR_CLI_CUST_NUM header=Cust## width=55 cfgridcolumn name=PTR_NAME header=Cust Name width=149 cfgridcolumn name=STATUS display=no cfgridcolumn name=ENTERED_DATE display=no cfgridcolumn name=ARS_COMPLETE_DATE display=no cfgridcolumn name=NOTE display=no /cfgrid /cfform cfset ajaxOnLoad(initrwsGrid)/ JS... /*initalize grid*/ initrwsGrid = function(){ var gridObj = ColdFusion.Grid.getGridObject(rwsGrid); var cm = gridObj.getColumnModel(); cm.setRenderer(2,render); /*Format date in column 2 to look like a hyperlink*/ gridObj.reconfigure(gridObj.getDataSource(),cm); gridObj.addListener(cellclick,gridfunc); } /*Render data as link*/ render = function(data,cellmd,record,row,col,store) { if(data != null ){ return 'span class=colfontblueunderline' + data + '/span'; } else { return data; } } /*called by init for grid render on cellclick*/ gridfunc = function(grid,rowIndex,columnIndex,e){ var record = grid.getDataSource().getAt(rowIndex); var fieldName = grid.getColumnModel().getDataIndex(columnIndex); /*On Cell Click logic*/ if(record.get(fieldName) != null){ /* Build hyperlink */ window.location.href = somepage.cfm?urlval=+record.get('NUMBER');; } } - Original Message - From: Svetlin Roussev svetlin.rous...@fuelinteractive.com To: cf-talk cf-talk@houseoffusion.com Sent: Wednesday, February 03, 2010 6:25 PM Subject: ***SPAM*** Re: cfgrid flash href You can do optionitem and bind it with the href. On Wed, Feb 3, 2010 at 7:10 AM, morchella morchella.delici...@gmail.comwrote: hey guys. i know cfgrid flash doesn't support href in cfgridcolumn but there has to be a way? cfgrid name=hoverArea query=gHa selectmode=edit format=flash height=210 width=800 rowheaders=no onchange=getUrl('_edit_hoverArea.cfm?ha_1Id=' + hoverArea.dataProvider[hoverArea.selectedIndex]['ha_Id']); make the entire row a link. but i only want a link in the id column, since the other columns are for editing data. has any one done this. i have googled till i can google no more.. so i come here =] cf8 thanks! -m ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330400 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: jquery javascript coldfusion.navigate cflayout cfdiv
Have you tried including the jQuery library on target page? - Original Message - From: David Mineer min...@gmail.com To: cf-talk cf-talk@houseoffusion.com Sent: Thursday, January 07, 2010 12:09 PM Subject: ***SPAM*** jquery javascript coldfusion.navigate cflayout cfdiv We cannot get a simple jquery function to work using coldfusion.navigate, cflayout and a cfdiv. One of those 3 or a combination is causing us fits. page 1: checkbox2.cfm -- script src= http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js;/scripthttp://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js%22%3E%3C/script script $(document).ready(function(){ $(#checkboxall).click(function() { var checked_status = this.checked; $(input[name=mapid]).each(function() { this.checked = checked_status; }); }); }); /script label for=checkboxallSelect Allinput id=checkboxall type=checkbox / FORM input name=mapid type=checkbox /BR input name=mapid type=checkbox /BR input name=mapid type=checkbox /BR /form Page 2: checkboxtest.cfm cflayout type=border name=layoutborder cflayoutarea name=Center position=center a href=javascript:ColdFusion.navigate('checkbox2.cfm','catz')Click Here/a /cflayoutarea /cflayout cfdiv id=catz /cfdiv --- The first page, by itself works just fine. The second page gives an error and we cannot figure out a solution. I really like the dynamic nature of using coldfusion.navigate to load a page into the cfdiv on the fly. How can I make the second page work? -- David Mineer Jr - The critical ingredient is getting off your butt and doing something. It's as simple as that. A lot of people have ideas, but there are few who decide to do something about them now. Not tomorrow. Not next week. But today. The true entrepreneur is a doer. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329472 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PDF Generation
Asim Check out Dynamic PDF v4.0 http://www.dynamicpdf.com/?gclid=CNL8hdiL_J4CFQoiagodSh8mmQ - Original Message - From: Asim Manzur bytel...@gmail.com To: cf-talk cf-talk@houseoffusion.com Sent: Tuesday, December 29, 2009 8:41 AM Subject: Re: PDF Generation Yes the problem is this pdf has lines, and sections and bar codes and bunch of other static stuff, which I can easily handle in pdf template but will become pain if I do in html. I am currently using this with ActivePDF but that where I am designing and drawing it line by line. Its now have very easy chances, but if client add more sections that will become very complicate. So, I want to see if I can have in design view just drop variables and when new changes comes in, it will be easy to modify the template. Thanks, AM Is there a reason you can't just create the template with HTML and use cfdocument to create the PDF? mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ I am not creating forms. I have pdf which needs to feed the variables like Company Name: *ABC company* I need to put the company_name variable where ABC printed. I don't want to create a form element that should be rather than just #company_name# and not input type=text name=company ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329360 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFwindow and jquery in source
Hi, I have an edit record form with some jquery that exists on it's own and runs fine. I'd also like to call this cfm as a cfwindow source under certain circumstances (parent-child associations). I cannot for the life of me figure out how to get my jquery to run when it is running inside a cfwindow. Anyhelp? Does anyone have any examples of this? I've changed my actual functions inside the $(function(){}) to myFun = function(){}, but I'm thinking that the $(function(){}) line is the issue. Thanks! ~| 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:321507 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFwindow and jquery in source
The issue is definitely that some of the jquery plugins rely on the ready event within their code. I can bypass ready in my cfms with ajaxonload for custom stuff, but I can't rewrite all the jQuery plugins! Ok, I can get jQuery validate to work whenever I change from cfform to form in my window source. However, this takes away the asynchronous submit and the rich text editor I was using. What a pain. I might as well not even be using the new tags as there is just too much javascript collision going on. I found two ways to get jQuery to work in CFWindow. You can use ajaxOnload within the source page in the CFWindow or the CFWindow callbackHandler. Interest thing is you must include $(document).ready(function(){}); in both the source page and within whichever method you choose upon generation of CFWindow. ~| 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:321511 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4