The official community for ColdFusion.
Recently active
Hi,I have a request from a client to generate an excel spreadsheet from a query. I have the query kicking out the fields and I can generate the excel file without a hitch. The problem comes when the client takes that excel file and then tries to manipulate it. The majority of the trouble comes from fields that should be marked as currency or dates. I am, with some struggle able to generate a "real" date field. Before this Excel was not sorting the dates properly.I was able to call an excel formula by using this:<cfset SpreadsheetSetCellFormula(s,"DATEVALUE(#Chr(34)##Replacement_ETD##Chr(34)#)",therow,9)>Date value forces Excel to acknowledge this as a real date field. However, this fails when this file is manipulated thru excel. The next problem is the currency field. I can't get excel to acknowledge this as a currency. It always comes up custom. When this is set, the SUM function won't work in excel. You can add the fields individually like A1+B1+C1 = TOTAL. This won't be helpfu
Hi there,I am running the following code I found on the internet to grab a load of Tweets with a particular hashtag: <cfset consumerKey = "MY_CONSUMER_KEY"> <cfset consumerSecret = "MY_CONSUMER_SECRET"> <cfset bearerToken = ToBase64(consumerKey & ":" & consumerSecret)> <cfset authorization = "Basic " & bearerToken> <cfhttp url="https://api.twitter.com/oauth2/token" method="post" charset="utf-8"> <cfhttpparam type="header" name="Authorization" value="#authorization#"> <cfhttpparam type="header" name="Content-Type" value="application/x-www-form-urlencoded;charset=UTF-8"> <cfhttpparam type="body" value="grant_type=client_credentials"> </cfhttp> &
In case anyone here doesn't follow the Adobe ColdFusion blog, this was posted yesterday: Submitting your wishlist for the next version of ColdFusion — Adobe ColdFusion Blog TL;DR: File your wishlist items on the Bugbase.-Carl V.
Hi,Using Coldfusion 10 (Update 14 or upper) for connect to SQL Azure, not works.If we use Coldfusion 10 without Update 14 the connection to SQL Azure works fine. But we need to use Java 1.8, then we need to install CF 10 Update 14.Thanks in advance,
I have a Windows 10 system with Apache 2.4 where I do ColdFusion development for a client who is considering an upgrade to ColdFusion 2016. I installed a trial CF (planning to use it as a development after 30 days) and it works so far except for scripts with CFIMAGE with WritetoBrowser. The browser debug tools in Firefox show an error: "NetworkError: 403 Forbidden - http://{vhostname}/CFFileServlet/_cf_image/_cfimg2.....jpg".The Apache {vhostname}-error.log shows the following: "AH01630: client denied by server configuration: C:/CFusion2016 ...."I earlier tried CF2016 on an older Windows 10 system with Apache2.2 and the applications using CFImage all seem to work fine there. I understand there were numerous security changes from Apache2.2 to 2.4. I suspect the mapping of CCFileServlet is behind the problem but nothing I have tried seems to make it work. I am looking for ideas before I ditch the Apache2.4 - I would rather not go backwards with v
Hello,I have searched the forums extensively and still have not found a solution. What I am trying to achieve is simple, but am having problems getting it to work. I want to pass a dynamic url string from a web mapping application to a cold fusion page that then opens the pdf file on the users browser. This is an example of the url that will be passed to this page, and based on what feature the user selects, subdir and page_id will be dynamic:http://localhost/displayImage.cfm?subdir=60&page_id=3807444 Here is what I have so far for displayImage.cfm,it is just a start, I know I need more, possibly cfheader content? When I run this code I get an error saying the file cannot be found.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head> <title>Untitled</title></head><body><cfquery name="Surveys" datasource="sire" dbtype="odbc"> select * from slco_sire.dbo.surveys_doc INNER JOIN slco_si
I would like to set up a single website with CFM11 under IIS8.5In this website there are several CFM applications, each under a different "Application" subfolder. For security purposes, monitoring and separate maintenance shutdowns per application, these would all need their own "application pool".However, this means that these applications should run under a different application pool than their website root node. In IIS this causes a 403.18 exception:HTTP Error 403.18 - ForbiddenThe specified request cannot be processed in the application pool that is configured for this resource on the Web server.Most likely causes:•An ISAPI filter or custom module changed the URL to run in a different application pool than the original URL.•An ISAPI extension (or custom module) used ExecuteURL (or ExecuteRequest) to run in a different application pool than the original URL.•You have a custom error page that is located in one application pool but is referenced by a Web site in another application po
Good Morning All,To begin, I am quite unfamiliar with ColdFusion, or any of its behaviors/capabilities. I am trying to track separate installs on clients, however nothing is showing up in ARP or HKLM\.....\uninstall. I was wondering if anyone could explain the behavior this program has on install. I'd like to know if I need to find a specific hidden key, folder, or config file to track this by. Any assistance is GREATLY appreciated.
I am getting an error with my application.cfc file for my database. I am using coldfusion 10 on a windows machine. This application file works on cf 9 and 8 and I do not know what the problem is now. I get the error:"Error Occurred While Processing RequestElement DATASOURCE is undefined in APPLICATION."This is my code and I have tried too make it work 2 ways:<cfcomponent><cfset This.name = "My App"><cfset This.datasource ="1093644"><cfset This.clientmanagement="True"><cfset This.loginstorage="Session"><cfset This.sessionmanagement="True"><cfset This.sessiontimeout="#createtimespan(0,0,10,0)#"><cfset This.applicationtimeout="#createtimespan(5,0,0,0)#"><cfset THIS.setClientCookies = "1"><cfset THIS.setDomainCookies = "1"><cfset THIS.scriptProtect = "All"><cfsetting showdebugoutput="yes" /><cffunction name="onApplicationStart" output="false" access="public"><cfset APPLICATION.EncryptionKey = "S3xy8run3tt3s" /
It's failing and I need to view the URL that was sent to my API provider. Is there a way to view this URL with all of its parameters?
I found this documentation, Adobe ColdFusion 9 * cfhtmlhead , but how do I use it in my page? Where do the <cfhtmlhead text="#sHeader#"> tag go on the page?Okay, so this is what I have.<cfsavecontent variable="sHeader"> <cfoutput> <title>#title# | My Company Site Claire</title> <meta name="keywords" content="#tags#" /> <meta property="og:locale" content="en_US"/> <meta property="og:type" content="website"/> <meta property="og:title" content="#cfData.data.name#"/> <meta property="og:url" content="#canonical#" /> <meta property="og:site_name" content="My Company website"/> <meta name="twitter:site" content="@MySite"> <meta name="twitter:title" content="#cfData.data.name#"> <meta name="twitter:creator" content="@MySite"> <link rel="canonical" href="#canonical#" /> </cfoutput></cfsavecontent><cfhtmlhead
Does anyone know how to open Acrobat DC in VBAPhil
I have Coldfusion 11 Standard running on Windows Server 2012 R2 with IIS. I attempted to install update 8 via the CFadmin. It failed and the log shows this:Failed to delete directory Status: ERROR Additional Notes: ERROR - Failed to delete directory:C:\ColdFusion11\cfusion/lib/httpclient-4.3.5.jar ERROR - Unable to delete file: C:\ColdFusion11\cfusion\lib\httpclient-4.3.5.jarFailed to delete directory &n
I just started working with ColdFusion this week.I have been experimenting with adding, changing, deleting, and viewing records in a small test database table.I would like to be able to display a list of rows and then select one row to change.I have been able to create a small HTML table to show the rows, but I am not sure that this is the best way to do this and I cannot figure out how to select a row from this HTML table.Perhaps someone could share an example or point me to an example on the internet.Thanks,Brad
Some documents are unreadable, is with other characters /? @ ?
Hello, all,I am having some issues trying to put together an SQL query of an Oracle 11g database, and I could use some help.Let's say tableA is blog entries; tableC is comments for the blog entries; tableB is the associative table:tableAblogID blogTitle blogBody dateEntered1 This is a test More text... 2016-05-20 11:11:112 More testing Still more! 2016-05-19 10:10:103 Third charm!! Blah, blah. 2016-05-18 09:09:09tableCcommID userID userText dateEntered10 &n
Have query that worked until v2016. Using order by right(LogNumber,3) DESC get error:Macromedia][SQLServer JDBC Driver][SQLServer]Incorrect syntax near the keyword 'right'query: SELECT LogNumber FROM tblMain WHERE (Program = 'Apple') ORDER BY right(LogNumber,3) DESC
Hi everyone. I was able to get a very simple shopping cart set up and to work with adding a Product to the cart and deleting the Product, but how do I add or display something such as the price of the product too? Here's what I have below on a products.cfm page and a ShoppingCart.cfm page:products.cfm<form action="ShoppingCart.cfm" method="post">Product 1 Description <input type="hidden" name="productID" value="1" /> <input type="hidden" name="productName" value="Socket" /> <input type="submit" value="Add To Cart" /></form><form action="ShoppingCart.cfm" method="post">Product 2 Description <input type="hidden" name="productID" value="2" /> <input type="hidden" name="productName" value="Adapter" /> <input type="submit" value="Add To Cart" /></form>ShoppingCart.cfm<cfif NOT StructKeyExists(session,'ShoppingCart')> <cfset Session.ShoppingCart = StructNew()> <cfset Session.ShoppingCart.FirstN
Hello, all,I've been playing around with imageDrawLine(s) and imageDrawText (only just recently discovered them), and I am confused about something that I hope someone can help clarify.If I create a new image using imageNew, I can draw lines and text on it with no problems.However, if I use CFIMAGE or imageNew to create an image from an existing .gif, it will not work. It does not error - it just leaves a blank white space where the image should be.Is it not possible to add lines or text to existing images?? Here's my code, so far:<cfimage action="read" source="#app_root#img/500x500.gif" name="myImage" /><cfset imageSetAntiAliasing(myImage,'on') /><cfset imageSetDrawingColor(myImage,'black') /><cfset attr = StructNew() /><cfset attr.width = 5 /><cfset attr.endcaps = "round" /><cfset imageSetDrawingStroke(myImage,attr) /> ... set x/y arrays ...<cfset imageDrawLInes(myImage,x,y,true,false) /><cfimage action="write
Hello,I am using CF11 on a Windows2012 server 64bitWhen using cffile with action "write" and using charset="utf-16", it creates a UTF-16BE (Big endian) file.Is there a way to get a UTF-16LE encoded file ?(I have tried charset="utf-16le" but it doesn't work).Regards,Pierre
I am receiving this error in CF Builder. Any ideas let me know.Version: 3.0.0Build: 292922!ENTRY org.eclipse.help.base 4 0 2016-05-17 10:55:06.470!MESSAGE Internal error while reading topic extensions from remote server!STACK 0org.xml.sax.SAXParseException; lineNumber: 50; columnNumber: 29; The entity name must immediately follow the '&' in the entity reference. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:348) at org.eclipse.help.internal.dynamic.DocumentReader.read(DocumentReader.java:56) at org.eclipse.help.internal.dynamic.DocumentReader.read(DocumentReader.java:44) at org.eclipse.help.internal.base.remote.RemoteExtensionProvider.getContentExtensions(RemoteExtensionProvider.java:65) at org.eclipse.help.internal.extension.ContentExtensionManager.loadExtensions(ContentExtensionManager.java:100) at org.eclipse.
On a Solaris server I am trying to patch a CF11 Update 7 instance to Update 8. Another development group updated all the other instances except the two I work on without talking to me first. On one of my CF instances the update page I see the following error:The web site you are accessing has experienced an unexpected error. Please contact the website administrator. The following information is meant for the website developer for debugging purposes. Error Occurred While Processing Request The getColdFusionInstances method was not found. Either there are no methods with the specified method name and argument types or the getColdFusionInstances method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity. &
I'm working on proof of concept of making my app more scaleable and reducing the support footprint on OS patching.I'm trying to take a CF11 Enterprise generated WAR file, and deploy it onto an Azure Tomcat 7 web app. I've never deployed CF apps on J2EE before, so I'm not sure if my problems are user error, or attempting the impossible.I can fire up Azure, deploy a Tomcat 7 server, and put a (non CF) war up in the webapp folder, and watch it deploy and become usable. But when put the CF war up, it explodes the directory out properly, but then refuses to run the web app.So I installed a local x64 copy of Tomcat 7.0.50 (same version as Azure) and tried the same thing. Locally, the sample WAR files worked fine (non CF), but when I tried a war produced by the Administrator on CF11 - the one page index.cfm (with only a cfdump in it) fails.Near as I can tell, it has to do with the web.xml generated by CF 11 Package and Deploy wizard. This is the most relevant error in my stderr log. It
Unable to debug coldfusion cfml. I have done the following setting.Allow Line Debugging is enabled.Debugger Port: 7777-DDEBUGGER_SERVER_PORT=7777.Test debugger fails.
Ok, so I've got a strange problem that I've been beating my head against for over a week now. I'm holding out a little hope that maybe someone here has seen something like this and has a solution or at least can point me in a direction to make some sense of it.We are running an enterprise application on CF9 currently. Recently we made a large update with some advancements and in part of the advancements I'm using some request scoped variables.Said request variable is a structure that is set in Application.cfc OnRequestStart. Randomly since the changes have been put on our production servers we get an error email (we have an error handler defined to capture and email errors when they occur), stating that key.subkey is undefined in request scoped variable. What makes this so bizarre is in the email from the error handler (that is processed in the same request) shows the key.subkey existing in the request scoped variable in a <cfdump var="#request#"> in the e
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.