The official community for ColdFusion.
Recently active
I have a web form, something like:<form><input type="text" name="objectives" value="This is a test"><input type="text" name="objectives" value="And another, if you know what I mean."><input type="text" name="objectives" value="And yet another."><input type="submit" name="btnGo" value="Do It"></form>And an action page that submits it to a db. The trouble is, the objectives will have commas in them, occasionally, and CF turns each comma into a list item, so my loop looks like:This is a testAnd anotherif you know what I meanAnd yet anotherbut I want:This is a testAnd another, if you know what I meanAnd yet anotherWhat I want to do is loop through the objectives, retaining the commas within the elements. I've been struggling with this for days. I want to avoid having to write some replace method in JS if I can help it.Thanks!How I'm looping:<cfset values = ListToArray(#FORM['objectives']#)><cfloop index="i" list="#FORM['objectives']#"> &
I'm testing out CF2016 Enterprise as a possible upgrade for my existing CF9 application, and I'm running into a major issue with existing code that works fine in CF9 where I read a BLOB image from my Oracle database and write it out to my filesystem as a JPG. The code looks something like this (redacted for security):... Query "GrabImage" reads image as "image_blob"...<cfset newimage=ImageNew(GrabImage.image_blob)><cfimage action="WRITE" source="#newimage#" destination="/xxxxxxxx/images/cf/#imagefile#" overwrite="true">The error showing up in my exception.log looks like this:"Error","ajp-nio-8016-exec-10","04/13/16","15:15:08","",""java.lang.NullPointerException at coldfusion.util.Utils.getFileFullPath(Utils.java:211) at coldfusion.image.Image.getInputStreamFromSource(Image.java:2802) at coldfusion.image.ExifMetaDataHelper.getOutputSet(ExifMeta
We are using java plugin for Crystal reports which supports up to Internet Explorer 10. So i have enabled IE compatibility view to run the reports in IE11. Is there a way to enable compatibility view for entire application.Thanks
Hi everyoneThis is a question for those people who have come to Adobe Premiere after using Final Cut Pro.How long do you think should it take an editor who has been working with Final Cut Pro (currently on version 10) for many years to switch to Adobe Premiere? How many days' training do you think would be needed?Any info/advice gratefully received!
Aloha,I am trying to change the braces in ColdFusion Builder to be on the same line, but it is not working for me.I am hoping somebody can help me arrange ColdFusion Builder the way I like the braces.Attached are images of what I did.However when I create a new ColdFusion comment it stills reverts to the next line style.Thanks so much in advanced for any help anybody can do to help me!Thanks!Johnny
Hello,I have recently installed Coldfusion2016, along with it I've configured the apache server which was installed through xampp. I'm totally newbie to this all.As in to check if CGI variables I copied the script ColdFusion Help | Testing for CGI variables written here.It is showing me output as "CGI variable does not exist".Can anyone help me out? As in Where can I set CGI variables? Am I Missing something?Thank You.
Hi. I have some javascript on my Add New Part page that has a form that says if a Part Number has a C and then a number behind it (like C1557), and the CN_Entry_Initials equal an "N", and the Validation_Qty is blank, make a Javascript error message display saying to enter a Validation Qty. I am trying to make this work on my Edit page also, but the error message does not display. I think it's because I have the input text box for the Part Number disabled. We don't want users to be able to update the part number once it's entered. If I just output the result of the Part Number, the javascript still doesn't work. How can I get the javascript to pop up an error message if the Part Number is C1557 (and the part number is just output to show the result), the CN_Entry_Initials equal an "N", and the Validation_Qty is blank? Below is the javascript I have and the form is below that. Thank you.Andy<SCRIPT LANGUAGE="JavaScript"><!-- Beginfunction verify() {var PartNum=document.EditItem.
We need details for coldfusion 16 same as present in the below link for coldfusion 11http://wwwimages.adobe.com/content/dam/Adobe/en/products/coldfusion/pdfs/cf11/coldfusion11-support-matrix.pdfIt's urgent.Thanks@Anirban
Not sure what happened, but now all my domains don't load anymore. I get this error. I'm at a lost and not even sure where to start to troubleshoot. Can someone please help? This is what is showing on my page when it loads.Thanks in advance.Jimmyat coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)at coldfusion.CfmServlet.service(CfmServlet.java:219)at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
We are running CF11. I am using Cold Fusion Report Builder. When I open a report in Report Builder I am able to run and modify the query for about 5 minutes. Then I get the Error Occurred message. How can I stop the RDS server from dropping me?
I have been asked to programme a method for importing data from xml files into our Coldfusion 8 website, I am new to using XML.My method had been working however I encounted the following error:Element NETWORKORDER.SECONDARYADDRESS.CONTACTNAME is undefined in MYDOC.On investigation the node in the XML file was not present.Is there a method I can use to resolve this error by checking if a node exists in the xml file, that works with my current code below?<!--- Read XML file ---><cffile action="read" file="D:\website\XML\#FileName#" variable="myxml"> <cfset mydoc = XmlParse(myxml)> <!--- Extract Data from NDS XML File ---> <cfset aPrimaryContactName=(#mydoc.NetworkOrder.PrimaryAddress.ContactName#)><cfset aPrimaryContactNumber=(#mydoc.NetworkOrder.PrimaryAddress.ContactNumber#)><cfset aPrimaryContactNumber= tostring(#mydoc.NetworkOrder.PrimaryAddress.ContactNumber#)><cfset aPrimaryContactAddressLine1=(#mydoc.NetworkOrder.PrimaryAd
Running CF 7 on Windows 2003 Server with IIS 6. Server is named usileng01.xyz.com. It has one IP address 135.5.17.25 and three web sites defined in IIS. All three are using the server's IP address on port 80.1) Default Web Site - Home directory in IIS points to C:\Inetpub\wwwroot2) itrac.web.xyz.com - has "Host header value" in IIS set to itrac.web.xyz.com. Home directory points to E:\iTracDocumentRoot. itrac.web.xyz.com is a DNS alias to usileng01.xyz.com.3) itdata.web.xyz.com - has "Host header value" in IIS set to itdata.web.xyz.com. Home directory points to E:\iTracDocumentRoot\IT. itdata.web.xyz.com is a DNS alias to usileng01.xyz.comAll three sites have anonymous access disabled and "Authenticated access" in IIS set to "Integrated Windows authentication" since PCs are logged into the AD domain.When accessing the web server via a DNS name (either usileng01.xyz.com, itrac.web.xyz.com, or itdata.web.xyz.com), the CFID and JSESSIONID change on ever
I've got a web app that allows users to save database results as a PDF file (I use cfdocument for this). There's also an option for them to select up to 20 records to PDF and zip (I use cfzip for this) but with almost 6000 records in the database, I don't want PDFs to pile up. It's easy to make the script delete the zipfile after download, but I'm trying to figure out a way to clean up the PDFs.One idea was to stick a unique identifier in the PDF filenames, then delete everything with a wildcard, but is there a better way?
I've installed coldfusion 2016. The administrator interface is ok, but when I open the web site I get the error 500. How can I risolve this problem? Thank you
I try to consume a webservice which lives on an iis-machine.I get this error message:-----------------------------------------------------------------------------------------------------------------------------------------------------errorCannot perform web service invocation suche.The fault returned when invoking the web service operation is:org.apache.axis2.AxisFault: Fehler beim Überprüfen der Sicherheit für die Nachricht. at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at org.tempuri
I have installed the Coldfusion 11 Standard Edition in Windows Server 2012 R2 with 2GB RAM and IIS 8.5. “Adobe ColdFusion Launcher Application” exe consumes more CPU memory in the process say around 86% and slows down or stops running the Application. The Application services goes down and URL throws Service unavailable error. Please help.
Hi. I just have a simple number range and I want to output the results. What I have outputs the results, but for some reason, it only displays the first result. Why does it not display the correct result? Here's what I have:<cfset X = 27><cfset Y = 37><cfif (#X# GT 35 LT 51 And #Y# GT 1 LT 35)><cfset Result = 200><cfelseif (#X# GT 1 LT 35 And #Y# GT 35 LT 51)><cfset Result = 300><cfelseif (#X# GT 35 LT 51 And #Y# GT 35 LT 51)><cfset Result = 100></cfif><cfoutput>#Result#</cfoutput>Since X is 27 and Y is 37 it should output 300 as the result, but it outputs 200. Why is this? What do I do to fix this? Thanks.Andy
Here's something I'd like to gain a better understanding of, because I'm looking for anything that will speed up my processes. I will try to describe and pseudo-code this as well as I can. Apologies in advance if anything is unclear.I have a CFC that is instantiated and utilized in two different ways. In the first way, the object is created, and a method within it is immediately invoked inline, which initializes some properties within that object, and finally returns This. The transient local object reference is then used to invoke other methods within it, and then it's abandoned as the request runs it normal course.myLocalObject = CreateObject("component", "myCFC").setStuff(theseArgs);if (myLocalObject.checkStuff(thoseArgs)) myLocalStruct = myLocalObject.makeStruct();In the second way, the object is created blindly, and the object reference is stored in a property of the calling CFC. Later, that stored object reference is used to invoke the same setStuff() method, bu
I believe I found a bug in CF11 with DateTime comparisons when dealing with UTC converted values going through serializeJSON then deserializeJSON. I did modify the code to not include the local2utc conversion and that seemed to produce correct results. Can someone please confirm: <cfscript> variables.dttm = createDateTime(2016,04,03,17,53,0); variables.dttmutc = dateConvert('local2utc',variables.dttm); variables.base = {}; variables.base.dttmutc_min = dateConvert('local2utc',dateAdd('h',-1,variables.dttm)); variables.base.dttmutc_max = dateConvert('local2utc',dateAdd('n',1,variables.dttm)); variables.viajson = deserializeJSON(serializeJSON(variables.base)); variables.viajson.dttmutc_min = parseDateTime(variables.viajson.dttmutc_min); // to me this parsing should not be required variables.viajson.dttmutc_max = parseDateTime(variables.viajson.dttmutc_max); // same </cfscript> <cfoutput> <h1>base<
Hi,Can anyone tell me please why this:<cfquery name = "check" datasource="ds">SELECT Date FROM tbl</cfquery><cfset check.Date = DateFormat(check.Date, "short")>results in the check.Date changing on versions before CF 2016 but not in CF 2016?thanks.
So, while I do use ColdFusion at work, I also use it on my personal website, where I host a blog and photo gallery.Whenever I click on a post or a gallery pic, I notice that the URL is appended with some sort of token. For instance, this:http://mysite/post/2224 becomes this:http://mysite/post/2224#.VmKaAipG_0It makes for some pretty ugly URL strings when I want to paste something to someone.My host uses CF9 (I think) and Linux. Is there an obvious reason it does this? I'm using session management and client cookies in Application.cfc, so maybe that has something to do with it.
if someone types a url into a form field and it goes into a mysql database. how do i get it to display as an active link on the display page.
The checkbox component right out of the box is showing up as a push button. Can I fix this?
Hi All.I have written a full application that works great using chrome http://localhost:8600/<appname>/When i build to phone gap i got the errorAndroid net::err_file_not_found (file:///android_asset/www/xxxxxx.cfmSo i thought oh dam, what stuff did i mess up. This is my 1st App.So i thought lets go back to basic.So i created a new project.I only created 2 pages index.cfm and test1.cfmindex.cfm <html> <head> </head> <a href="./test1.cfm">test</a> </html> test1.cfm <html> <head> </head> <a href="./index.cfm">index</a> </html> Then i built the app.downloaded APKinstalled on samsung note 3 aswell as samsung note 10.1When i run the app. i see the hyperlink i click(touch) on test 1.I then get the following error then app closesCfbuilder Android net::err_file_not_f
I am following these instructions for creating/exporting a j2ee archive (WAR or EAR) for coldfusion 9. http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf364104-7fd1.htmlHowever, after selecting my settings, there is a "Submit" and a "Cancel" button. There is no "Create" button. I do not see a .WAR file anywhere on my server, although it has created a directory structure with some xml files, etc. I was expecting just a WAR file. Any help/idea? Thanks. Doing a migration from 9 to 11.
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.