The official community for ColdFusion.
Recently active
Hi!I've got a simple Excel spreadsheet that allows user input to produce 15 or so cells with calculated values. The idea is to let a user change one or more values to see what impact those changes would make on the outputs. I can create the form to gather all the input. What I'd like is your thoughts on how to perform the calculations and display them. FWIW, all the input and display cells in Excel are named, and I would use the same names as vars in my CFML. Here's the inputs:The formulas are lengthy, because of the length of the names, but they use simple arithmetic. For instance, like: Average Income Per Hour =Avg_Del_Inc_Ttl/(Hours_Per_Shift*Delivery_Percent_Time) I have some study to do. I'm just uncertain which path will get me to where I want to go. Do I need to employ cfscript? Or can I just do the math on new variables whose values I pull from the form field values and other previously calculated variables? Not looking to have my code tweaked. I'm ju
Can anyone show me a simple Coldfusion code to loop to run a piece of code every second? Thank you so much.
Hi, I find myself in a ColdFusion 2018 environment on a Linux server behind an Apache server.I had issues and tried to track them down. It turned out my long running script is called over and over again.I call it manually through a webbrowser once. I see it initiates only one request through the browser's F12 tool.After I realized that requests multiply I searched the internet for possible solutions and found this thread on this site: https://coldfusion.adobe.com/2019/02/apache-crashes-serving-multiple-thread-requests-using-cf2018/ I eventually set heartbeat_interval to 0 and noticed no change. Only after httpd was restarted the "Segmentation fault" messages stopped. Now I start my long running script and enter some data into a database when it is started, including a timestamp. This is how I see that the script is started again and again every 6 minutes.I guess this is still a connector issue.Does this behaviour ring a bell? I like to believe some instance (connector, h
Good morning, I am haveing an issue with a new ColdFusion 2018 Enterprise edition, installed on a CentOS 7 web server with Plesk Obsidian 18.0.28, not displaying ColdFusion tags at all when being access externally. Internally on the web server, if I navigate using the 127.0.0.1:8500/Web-App-File-Path, all CF tags are displayed correctly. I installed CF to use the built in web server which is what I'm thinking is the issue. Do I need to setup ColdFusion to run on an external server, Apache, to get my web applications do run coldfusion tags externally? I'm assuming since I already installed CF, I can run the Web Server Configuration tool to setup the external server? Any suggestions would be greatly appreciated. -Daniel
ColdFusion 2016 Standard update 11 and IIS Server . Nessus scan vulnerability on port 5500 Trace method enable. We add GET,POST in allow verb inside IIS Request Filter. But still we get vulnerability report. We remove add-on service (Jetty as report show Server: Jetty(9.4.2))
Hi,I wanted to try coldfusion for a project for a customer, also I downloaded and installed coldfusion trial for linux. But when I start eclipse/coldfusion I got the following error message:"Standard Edition trial expired. Only the ColdFusion Builder Express Edition features are available now." It was supposed to be a 30 days trial not a 0 day 🙂ColdfusionBuilder start but of course not remote server and other stuffs needed for evaluation. I'm a little disapointed
Has anyone gotten <cfhtmltopdf> to work with svg (or any other vector image formats). I have a require ment for very large vector pdfs that can be imported into CAD. I have tried using wkhtmltopdf but have had issues with it using local files on the server (on a stand alone work station it works great) and finding a way for it to push the completed pdf back to the user rather than doing a local save on the server. Thus if I could get <cfhtmltopdf> to work with the vector images it would be a godsend.
Hi allWe upgraded from CF11 to CF2018 recently. Today we found a JavaScript error due to a difference in the way ColdFusion's ToScript() function returns its data. The ColdFusion structure going into the ToScript() function looks like this:<cfdump var=#allowedLevels# /> The above structure is passed to ToScript() as follows: var #toScript(allowedLevels, "allowedLevels")# In CF11 the results look like this: var allowedLevels = new Object(); allowedLevels["1"] = new Array(); allowedLevels["1"][0] = "1"; allowedLevels["1"][1] = "2"; allowedLevels["2"] = new Array(); In CF2018 the results look like this: var allowedLevels = new Object(); allowedLevels["1"] = new Array(); allowedLevels["1"][0] = 1; allowedLevels["1"][1] = 2; allowedLevels["2"] = new Array(); As you can see, the values in the second dimension of the array are created as Strings in CF11 and as Integers in CF 2018. Can anyone offer the reason why thi
In case you hadn't heard, CentOS in it's current form is going early EOL in Dec 2021. This is a tough blow to sysadmins that need an Enterprise class linux distro, but don't have the budget to license every server with RHEL. What path does Adobe Coldfusion plan to take? Will they support the new "CentOS Stream" OS, which is a sort of "staging" release seated between Fedora and RHEL. Or will Coldfusion simply drop CentOS support completely. Will Oracle Linux be officially supported instead? It is another free of cost 100% binary compatible RHEL clone, similar to what CentOS was. Just curious what path CF plans to take, that way we can plan our new buildout properly.Thanks, -Tony
ı want to make ;1-make a paging at form2-Show the EVENT_TO_POS the personel name not show integer number.(at sgl its nvachar but at employees id is integer)and search with dropdown list and show the data for departman.(for example at technical departmans notes)thats the code ;<cfparam name="attributes.keyword" default=""><cfparam name="attributes.start_date" default=""><cfparam name="attributes.finish_date" default=""><cfparam name="attributes.form_varmi" default=""><cfif len(attributes.start_date)><cf_date tarih="attributes.start_date"></cfif><cfif len(attributes.finish_date)><cf_date tarih="attributes.finish_date"></cfif><cfquery name="deneme" datasource="workcube_teknotel" >SELECTER.EVENT_RESULT,E.STARTDATE,E.FINISHDATE,E.EVENT_HEAD,E.EVENT_TO_POSFROMworkcube_teknotel.EVENT EINNER JOIN workcube_teknotel.workcube_teknotel.EVENT_CAT EC ON EC.EVENTCAT_ID = E.EVENTCAT_IDINNER JOIN workcube_teknotel.workcube_teknotel.
Unresponsive Server alert when .cfr file is called in Cold Fusion 9. The threads were killed by the monitor. Below is the stack trace. Could any experts point out the reason behind this server alert. Help much appreciated! "Information","scheduler-0","12/04/20","05:43:27",,"Aborting request <path to my cfr> handled by thread jrpp-9 Java stack: java.util.HashMap.get(HashMap.java:303) at net.sf.jasperreports.engine.xml.JRElementFactory.createObject(JRElementFactory.java:100) at org.apache.commons.digester.FactoryCreateRule.begin(FactoryCreateRule.java:391) at org.apache.commons.digester.Digester.startElement(Digester.java:1563) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocume
Where can i get a user manual for ColdFusion 2018, I'm a new user and would like to have a good start. You can share blogs or links that can help.
I know this is a long standing issue with ColdFusion, and there are many workarounds, but is there an easy way to get the query object to have the columns in the correct order without jumping through hoops? I haven't dealt with it before because I always had display outputs that were manually put together, but when I started using the spreadsheet functions -- spreadsheetAddrows() puts the data into a spreadsheet with the columns in the wrong order. Any easy fix? Tom Muck
While running getAll is cfimap we get the following error when we hit an email with a blank body and an attachment.http://localhost:8002/test/email_imap_test.cfm?folder=problemStack Trace java.lang.ClassCastException: com.sun.mail.imap.IMAPMessage cannot be cast to javax.mail.internet.MimeBodyPart at coldfusion.mail.EmailTable.getAttachmentName(EmailTable.java:795) at coldfusion.mail.EmailTable.populate(EmailTable.java:309) at coldfusion.mail.IMapImpl.getMails(IMapImpl.java:377) at coldfusion.tagext.net.IMapTag$1.run(IMapTag.java:647) at java.security.AccessController.doPrivileged(Native Method) at coldfusion.tagext.net.IMapTag.handleRequest(IMapTag.java:643) at coldfusion.tagext.net.IMapTag.doEndTag(IMapTag.java:536) at cfemail_imap_test2ecfm1030837708.runPage(C:\Data\backofficeV2\www\test\email_imap_test.cfm:33) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246) at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:736) at coldfusion.tagext.lang.IncludeTa
I have a page which displays some iamges and everything works fine. When I use cfhtmltopdf to generate a PDF of the page some of the images are rotated 90 deg and others are rotated 180. Most of the images appear correct, but as I say, some are rotated. I get the same results if I use cfdocument. I have tried using style="image-orientation:from-image;", but that made no difference. Does anyone have a suggestion of what I might try? Thanks
Having just recently migrated my intranet to CF2018 Enterprise (from CF10), I'm finding some weird behavior in my Excel spreadsheets. I use SpreadsheetNew("true") to create spreadsheets and then directions like this to format the rows and columns:<cfset SpreadsheetFormatRow(s,{bold='true'},1)><cfset SpreadsheetFormatColumn(s,{dataformat='##.00'},13)>This ends up producing my first row all in bold (correct), my 13th column formatted as _.00 (correct), but then my 13th column also ALL in bold. Basically, any column I apply formatting to ends up extending the row formatting all the way down.And if I do it in reverse:<cfset SpreadsheetFormatColumn(s,{dataformat='##.00'},13)><cfset SpreadsheetFormatRow(s,{bold='true'},1)>That part works, but in specialized cases where I've tried to bold particular cells (to highlight data), that instruction is ignored:<cfset SpreadsheetFormatCell(s,{bold='true'},s.RowCount,13)>No cells in column 13 are bold except f
I go to https://www.adobe.com/support/coldfusion/downloads.htmlClick on ColdFusion (2018 release) Downloadswhich takes me down the page where I click on ColdFusion (2018 release) - Developer Edition (Free)which takes me https://www.adobe.com/products/coldfusion/download-trial/try.htmlAdobe ColdFusion(2021 release)Start your 30-day free trialI have filled out the form and am able to download 2021; however I need to download 2018. I have also gone to https://helpx.adobe.com/coldfusion/release-note/coldfusion-2018-release-notes.htmlwhich accomplishes the same thing as above.
In Adobe ColdFusion (2021 release), the mask D in date formatting functions, such as, DateFormat has been fixed to return the day of year. Since this can cause a few backward-compatibility issues, we've added a flag in jvm.config, the details of which are explained the KB document. For more information on this behavior, see the following: Charlie Arehart's blog CF-4210921 For more information, see the KB document. We'd like to thank Charlie Arehart for reporting this. Meanwhile, you can follow Charlie's blogs and on his Twitter handle.
Hello - I recently installed ColdFusion Standard 2018. I tried to add an MS Access data source, but I noticed that the ColdFusion 2018 ODBC Server was not started. When I try to start it, I see the error in the attached. Has anyone encountered this? Any suggestions? I am not able to start the service. Thank you.
I make the request to coldfusion api from .net core api as shown below Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); var httpWebRequest = (HttpWebRequest)WebRequest.Create("http://url"); httpWebRequest.ContentType = "application/json"; httpWebRequest.Method = "POST"; var jsonSeri_ = Newtonsoft.Json.JsonConvert.SerializeObject(_frmCustomerTicket); Encoding iso = Encoding.GetEncoding("iso-8859-9"); Encoding utf8 = Encoding.UTF8; byte[] utfBytes = utf8.GetBytes(jsonSeri_); byte[] isoBytes = Encoding.Convert(utf8, iso, utfBytes); string msg = iso.GetString(isoBytes); using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream())) { streamWriter.Write(msg); } in coldfusion api I get the request json as below<cfif cgi.content_type EQ
I added to JVM arguments -Dfile.encoding=UTF8 and application server service not starting.Here is the error. So is there a way to undo what I have done. Because there is no way access to the Administrator panel.
Hi all,While importing date value using cfspreadsheet tag, I am getting date in m/d/yy format although the XL sheet is having date in m/d/yyyy format.When I convert them using dateformat function the dates like 1/1/1925 ( between the year 1900-1929 read as 1/1/25 by cfspreadsheet tag) got converted in to 1/1/2025 for m/d/yyyy format which is incorrect. The issue is for all dates between the year 1900-1929. Rest of the dates are converting fine even though they are having 2 digits in year. EX: The date 1/1/1930 which got converted into 1/1/30 by cfspreadsheet tag on applying m/d/yyyy dateformat function got converted into 1/1/1930 which is correct. If any one has Idea about this issue please help. ThanksSunil
Hi, Would really appreciate help with solving something that I am sure is pretty straightforward. I've got a form with a variable number of form fields, that I need to submit to a separate Coldfusion page to record the results in a database. Basic stuff. The number of form fields can grow to well over the permitted value of form fields that the server will allow, and I don't want to change that for security reasons. The form contains fields along the lines of :person1address1age1person2address2age2,etc ...where the number could be considerable depending upon the condition that generated the list of people, and as a result, with 3x the number of form fields per person, it has been known to push it over the limit. So my question is, is there a way of passing a large number of form fields safely? I've read that JSON, or a combination of jQuery and JSON might be an option, but I'm finding examples difficult to come by. I've had no expe
Goal: To have consistent behavior of handling form and URL scope variables as structures containing arrays, therefore, eliminating issues with comma-separated values. Form fields and URL query parameters can have the same names. If two form fields (or query parameters) share the same name, ColdFusion will concatenate their values, separated by commas, and assign them to a single key in the form scope. The same applies to the URL scope. Therefore, a user-submitted value that contains a comma can cause program flow issues/errors later on. Years ago, ColdFusion added "sameFormFieldsAsArray" as an application setting. This is great, but it is limited to only the form scope. It does not affect the URL scope which can also have multiple parameters with the same name. While trying to find a solution that works for both form and URL scopes, I found documentation on using getPageContext().getRequest().getParameterMap(). This is where I ran into the first issue. With URL
Note: ColdFusion does not support Big Sur. Before upgrading the OS, check the support matrix. Adobe ColdFusion Builder (2018 release) and ColdFusion Builder (2016 release) are NOT COMPATIBLE with Big Sur. If you launch ColdFusion Builder on macOS Big Sur (macOS 11), it behaves unexpectedly and produces exceptions. We are working on making ColdFusion Builder to be compatible with Big Sur. Meanwhile, you can review the current system requirements for ColdFusion Builder.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.