The official community for ColdFusion.
Recently active
Has anyone been able to get the autosize option in CF11 to work properly, I have added it to a couple of the spreadsheet I am generating but one of my columns is still coming out twice the size it should, it shrinks back to the right size if you do the autowidth in Excel so I am not quite sure what is stopping it from working any ideas?
<form action="/index.cfm" method="post"><form action="../index.cfm" method="post"><form action="../../index.cfm" method="post">Have tried them all, no luck. Any help?
I am new to coldfusion and have inherited a project from work that involves coldfusion apps that produces reports. I want to create a ASP.Net App with a new front end that will link to the coldfusion apps and display the reports.....any ideas? Thanks in advance
I used my well working code from Coldfusion 9 to get it running under Coldfusion 11 and found a bug in CFGRID together with a bind statement:Using bind the resulting javascript on the page has an error. The grid is not shown because the javascript is not executed. It seems that in the javascript a closing ' is missing.This happens if more than one variable is passed with the bind statement.Best regardsJürgen
Hi Guys,How I can generate a XLS file with information in a XML file.I have a XML which received information from a form.To the user see the information inside a XML file, I created a report.cfm with the informations of the users.Now the user want which the information in the XML, generate a XLS file from a CFM file to download.How I will transformed this information in a XLS file?Thanks,Fabiano Magno Pechibella
I have a lot of function calls with long lists of arguments and sometimes they can get mismatched (invoke with invokeargument status, function argument status_code). Coldfusion allows this to happen and makes the undeclared argument available in the arguments scope. Is there any way to disable this behavior so it only allows declared arguments and throws and error when it gets passed an argument that it doesn't expect?
I have tried to reference the file several ways without success. Please help me sort this out. Thanks!<a href="/index.cfm/fuseaction/YourShoppingCart.additem/productid=1001">add to cart</a> <a href="./index.cfm/fuseaction/YourShoppingCart.additem/productid=1001">add to cart</a><a href="http://www.theartoflovingcatsanddogs.com/index.cfm/fuseaction/YourShoppingCart.additem/productid=1001">add to cart</a>
Hi there, I'm new of the comunity and I'm a junior coldfusion developer...I have a problem with my application, I post the debug information of two cases: this is a normal result after I call the home page: quote: Execution Time (0ms) CFC[ /storage2/webapps/webappcfusion/cfusion/ancitel/Application.cfc | onRequestEnd(/ancitel/ancitel.cfm) ] from /storage2/webapps/webappcfusion/cfusion/ancitel/Application.cfc (89ms) /storage2/webapps/webappcfusion/cfusion/ancitel/ancitel.cfm · (4ms) CFC[ /storage2/webapps/webappcfusion/cfusion/ancitel/system/cfcomponents/com/mycompany/contenuti/ContenutiUtility.cfc | getForHome(100, 1) ] from /storage2/webapps/webappcfusion/cfusion/ancitel/system/cfcomponents/com/mycompany/contenuti/ContenutiUtility.cfc @ line 9 · (4ms) /storage2/webapps/webappcfusion/cfusion/ancitel/system/cftags/layout/pagelet.cfm @ line 29 · (4ms) /storage2/webapps/webappcfusion/cfusion/ancitel/system/cftags/layout/pagelet.cfm @ line 35 · (4ms) /storage2/webapps/webappcfusion/c
When running this it is only giving me the last value of my query in the array. Any thoughts on why this is happening? I appreciate any assistance. Thank you<cfset result = arrayNew(1) /> <cfset ArrayMedSchools = structNew() /> <cfloop query="GetMedSchool" > <cfoutput> <cfset ArrayMedSchools.name = Institution /> <cfset ArrayMedSchools.id = InstitutionID /> <cfset arrayAppend(result,ArrayMedSChools) /> </cfoutput>
During testing yesterday, I found that my web app wasn't updating records correctly. Some columns update while others didn't.Upon further inspection, I found that all the columns that weren't updating had one thing in common - they're all datatype nvarchar(max).I'm not sure what the problem is, but the first thing that came to mind was my cfqueryparam tags. I'm using cf_sql_clob as the cfsqltype (this is leftover from MS Access, as we needed that for memo fields). I tried changing this to varchar and longvarchar with no luck.The odd thing is that it works perfectly (using clob) on our test server, just not on our live server. Both machines are running CF8, but one is running SQL Express and the other is running SQL Enterprise.I'm sort of not sure where to go from here as far as debugging this.
I have a problem saving PNG images from another server, for example itunes, some work, some don't The following image will open fine in my browser ->http://a576.phobos.apple.com/us/r30/Purple/v4/de/60/bb/de60bb7f-8995-4007-cfec-1b0a472fa367/icon.pngThis is the error I am receiving: An exception occurred while trying to read the image.javax.imageio.IIOException: Error reading PNG metadata Code:<cfimage source="http://a576.phobos.apple.com/us/r30/Purple/v4/de/60/bb/de60bb7f-8995-4007-cfec-1b0a472fa367/icon.png" overwrite="true" destination="#filepath#/9999.png" action = "write">I believe some images have malformed/incorrect headers. I'm guessing this is a CF issue (I use CF8), because it loads fine in a browser.Anybody have a solution to this? Maybe an alternative way to retrieve the image? Custom tag?ThanksMark
Hi,I'm facing ColdFusion 11 installation issue on MAC OS X 10.9. Once the installation done with first step it asks to run the ColdFusion service manually as it is not automatically get started, once the service gets started asked to navigate to http://127.0.0.1:8500/CFIDE/administrator/index.cfm to configure the ColdFusion Administrator and server it throws error HTTP status 500 - java.lang.NullPointerException.Can anybody please help me out from here?Thx,Abhishek
Is there a way to retrieve just the document filename without the appended url path from a cfsearch?
This is occuring after a fresh install of IIS, and the cfadmin website is configured via WSCONFIG. I followed all the user permission recommendations from Pete's CF11 Lockdown Guide with the exception of the IIS configuration(still haven't removed handler mappings and haven't added any URL deny sequences under Request Filtering). Which eventually I will because that's the goal.This is what I get after I submit my username and password. the last http request that is made is to /CFIDE/administrator/enter.cfm, which responds with 405.0 Method Not Allowed (invalid method http verb)After I can keep going back to the login page with no problem. I'm accessing the cfadmin on Internet Explorer logged in as an administrator user of the web server(2012) itself.
About five years ago we upgraded our ColdFusion installation from MX 7 to 9.0.1. We've been running this version for about three years now with no problems. It's been great. But, we're two versions behind. We're running a MSSQL Server 2008 on an Windows Server 2008 R2 machine. We are considering upgrading to ColdFusion 11 Enterprise.I understand that in ColdFusion 11 Enterprise, they completely did away with certain things that were considered "deprecated" in version 10. I have a feeling this might cause problems migrating to 11, especially considering that our system was originally designed/created on MX 7. Of course, since upgrading to 9, we've tried our best to update everything from the old to the new.Is it worth upgrading to ColdFusion 11 from 9? Is it more than likely that we'll run in to problems with our applications in this upgrade? If everything is working fine as is, is there really any benefit to upgrading?Thank you for
I installed CF Builder 3 and wrote a "Hello World" scripts. But when I clicked "Run", it looks for "ANT" builder. I clicked on the two ANT listed, and return error says "No ANT file is found".Can anyone help me?BTW, I am new to CF.Thanks.Shen
I have a query ("GetTotals"). I'm adding a column there from the other query ("GetTheList") using the standard code: <CFSET myArray = ArrayNew(1)> <cfloop query="GetTheList"> <CFSET TotalJobs = GetTheList.Total> <CFSET x = ArrayAppend(myArray,TotalJobs)> </cfloop> <CFSET x = QueryAddColumn(GetTotals, "Totals", "VarChar", myArray)><CFOUTPUT QUERY="GetTotals"> shows everything the way I need. Except for one problem: How I order the output by that added column?Simple re-order (below) works for one column only but not for all of
I've set my datasource advanced settings to higher end Ascii characters along with unicode.I'm inserting data into MS SQL using <cfqueryparam cfsqltype="cf_sql_char" value="#listgetat(form.apps,1)#"> and I've changed the settings in the database to NVARCHARI can cut and paste a registered trade mark along with a few other special characters (and foreign language) directly into the database and they store just fineWhen I scrape HTML from a site, parse and then try to store it from a SQL INSERT, I end up injecting question marks where some of the special codes go, some seem to store, I've seen some Chinese and Russian characters in there.Can anybody help?ThanksMark
hi everyone,I have a file that only contains a number in it (invoice number). Every time someone submits a form, it should increase the value of the number in the file by one. It's my understanding that the file should be "locked" while it is being written to, so it does not give a duplicate amount if two people submit at the same time. Upon updating the file, it would then unlock the file, so it could then be written to by the next transaction.The file would exist in the same folder as the form. That's just my speculation as to how I think it should work. Basically, Open file, Lock file, write to file, unlock file.Does anyone know of any tutorials that would show how to do this?Thanks!
I have a web app that deals with both authenticated users (who log in via a central login) and unauthenticated ones.For the authenticated ones, I call a web service that returns an XML file. I'm using this code: <cfif IsDefined("session.loginauth")> <cfset session.logincreds = XMLParse(session.loginauth)> <cfset session.userid = session.logincreds.user.row[1].user_id.XmlText> <cfset session.rights = session.logincreds.user.row[1].user_type.XmlText> <cfset session.usernm = session.logincreds.user.row[1].name_first.XmlText & " " & session.logincreds.user.row[1].name_last.XmlText> </cfif> It works fine for authenticated users, but fails for unauthenticated ones. The error is on the line with the XMLParse(). It's like the IsDefined isn't working and the code within the cfif is
We are running CF 10 on Windows 2012 and just this weekend started having a lockup of the ColdFusion server about once a day. When I look at the services, it shows the ColdFusion Application Server as running, but pages are not served, just an Apache error page saying that the system is unavailable due to maintenance or overloading. If I restart the ColdFusion Application Server, everything is back to normal. The Windows Application event viewer shows two events that seem to correspond with the timing of each shutdown:Log Name: ApplicationSource: ColdFusion 10 Application ServerDate: 7/23/2014 6:02:53 AMEvent ID: 3Task Category: NoneLevel: InformationKeywords: ClassicUser: N/AComputer: Webserver-2Description:The description for Event ID 3 from source ColdFusion 10 Application Server cannot be found. Either the component that r
Question in the heading!Thanks!
hi thereI have a very strange behavior: Since years, we run CF10 Standard on Win2k3 for an old productive site. Some weeks ago, I faced some DOS-like problems on it and discovered that CF Admin shows the version as Developer Edition. This was absolutely surprising to me as we have a valid CF10 Standard Serial since 2012. Of course I entered it immediately again but to no avail. CF10 would remain in developer state.Can this be caused by some CF10 Updates? We are at Update 13. Afaik, we do not need anything that is a CF10 Enterpreise feature. Can it be that some CF10Ent feature was turned on somehow that now prevents entering a Standard serial? And if so, what can I do to get bacl to a full working CF10 Standard? Any other ideas?CF10 currently runs on Apache 2.2.27. Apache was updated several times over time.This is critical because of the IP limitations. Lucky we that this system is used only seldomly. But still: DOS like problems appear.Any ideas how to correct that?not to say that thi
Hi All,I have exiting ColdFusion project in my local drive and I want to import it in Eclipse. I already have CFEclipse installed in Eclipse. Is there any step by step instruction to do this?Thanks
I was wondering if you could have a cfif statement inside of a update query. See example below. Is there a better way of doing it? thanks.<cfquery DATASOURCE="xxx" name="update"> UPDATE plant_gen_info SET levels_complete = #URL.var0# <cfif IsDefined("URLvar13"> ,Q1_answer = #URL.var13# </cfif> WHERE ID = #session.member_id# </cfquery>
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.