The official community for ColdFusion.
Recently active
Hello everyone, I'm working on the project where I have to pass few parameters and insert them in two different tables. Arguments that I passed in my first table are fine and I do not have any problems to insert those records but in my second table where I'm passing dynamic parameters I keep getting an error. That argument is created on the previous page from drop down. So If I select 1 in my drop down I will have just one input text box, If I select 2 I will have 2 and so on. So I used <cfdump var="#arguments#"> to pass all the arguments from that page. Dynamic arguments are passed like: combName_034-54-65combName_176-87-98combName_289-88-88So at this point I have three parameters but next time I might have only 1. So I'm getting confused how to Insert these records in my second table, also each of these combinations match value from drop down in my table. So combName_0 should be inserted in the same row where DropDown value = '1', combName_1 should match DropDown value= '
Hi, I am having problems running the CF admin page after fresh installed on server 2012.it is giving HTTP ERROR 500.0 INTERNAL SERVER ERROR any suggestions please thanks
I'm attempting to use cffile to retrieve an item from AWS S3 using CF's Using Amazon S3 Storage examples. I have tried this on 2 systems:CF 9,0,1,274733, Windows 2008 R2, IIS 7.5CF 10,0,10,284825, Windows 2008 R2, IIS 7.5The file I am trying to retrieve is web-accessible at http://osric-com.s3-website-us-east-1.amazonaws.com/alpha.txt and permissions are set to open for everyone.Here's the initial code I tried:<cffile action="read" file="s3://osric-com/alpha.txt" variable="result"><cfdump var="#result#">This returned the following error:An error occurred when performing a file operation create on file s3://osric-com/alpha.txt.The cause of this exception was: org.apache.commons.vfs.FileSystemException: Unknown message with code "S3 Error Message."..As a second attempt, I tried adding an Application.cfc to that directory and specifying the access key ID, the secret key, and location/region:<cfcomponent> <cfscript&
Downloading, Installing, Setting Up
I am using cold fusion report builder 10. I have an image that I want to use as the Report Header. How can I enlarge the image?
Hello, all,On a personal project at home, I'm trying to use ImageResize to resize an image pulled from a BLOB in a MySQL database. I'm getting an error message "unable to cast an object of [B to image." Have not a clue what that means. Here's my code.. SELECT imageBLOB, imageWidth, imageHeight FROM r_images WHERE imageID = <cfqueryparam value="#arguments.thisID#" cfsqltype="cf_sql_varchar" /> and.. variables.thisPicQry = new components.PICTURES().getAlbumPic('#trim(url.id)#'); ImageResize(variables.thisPicQry.imageBLOB,"50%",""); variables.thisImg = variables.thisPicQry.imageBLOB; I've never used ImageResize() before. The data from the database is already a binary; so what am I doing incorrectly?V/r,^_^
I was deploying ColdFusion 11 applications using J2EE configuration (WAR) in Linux server. I am using WebSphere as a application server. Basically, when we deploy through WebSphere it redeploys the whole war file which wipes out the local changes so you can lose any settings or anything you do in cfadmin console. we can't modify files locally on the WebSphere as it is not a good practice. Deploying manually through cfadmin console is not good moving forward. Is there any automated ways to potentially doing deployments. Does cfadmin has any API that can interact to deploy files via scripts.
I am in the process of upgrading from Coldfusion 9 to Coldfusion 11. My site relies heavily on interaction with Ldap for a variety of permissions assignments. The following code works in CF9, but CF 11 returns an error related to the filter: Attribute validation error for tag CFLDAP. This is the query: <cfldap username="myuser@mydomain" password="mypassword" action="query" server="DCNAME" name="UserLevelGroups" attributes="samaccountname, dn, memberof, directReports, manager, mail" start="dc=vno,dc=mydomain,dc=local" scope="subtree" filter="(&(objectclass=user)(!(|(name=*Service*)(name=*she*)(name=*vho*))(mail=*)))">
I have this function below and I tried to write the result of query to log file but it failed every time I ran. the CFLog tag as third line from the bottom. Any suggestion is much appreciated.<cffunction name="getCommonSpotPages" access="public" returnType="query"> <cfset var qryCSPages = queryNew("")> <cftry> <cfquery name="qryCSPages" datasource="#application.sitemap.sDSN#"> select p.ID, s.subsiteURL, p.filename, p.DateContentLastModified, u.publicFileName, p.uploaded as bIsUploaded, s.uploadURL, (select fieldValue from data_fieldValue dfv where p.ID = dfv.pageID and dfv.fieldID = #application.sitemap.nPriorityFieldID# and dfv.versionState = 2 ) as nPriority, (select fieldValue from data_fieldValue dfv where p.ID = dfv.pageID and dfv.fieldID = #application.sitemap.sFrequencyFieldID# and dfv.versionState = 2 ) as sFrequency from SitePages p join SubSites s on p.SubSiteID = s.id left join UploadedDocs
Redcap has Data Entry Trigger with HTTP POST. I want to synchronize data back to Oracle with Coldfusion web application once Redcap gives a trigger. Can I use Websocket to do that? How can I catch RedCap trigger? Thanks.
Hi All,Please help me to out for how can config DSN on coldfusion 9 to connect Oracle RAC?Thanks in advance.NAF
The 'see also' links on https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-m-r/querynew.html are all broken.
I think that the file contains SQL queries, format tags to shape the content of the report, calculations and it's all saved as a .cfr file! Yes or no?Why aren't there any examples of the content of a CF report file...yes the simple report is on the site and that's it?
I have a site built in coldfusion. I want to add a feature to the site where the user can click a button and be directed to a page, when the new page opens a timer would start and when the user leaves that page then the timer would stop. This would basically track the amount of time the user (a member of my organization) spent on this page. Is it possible to add a timer feature like this to my site?
Title Text here series-amps.gif is 800px high by 16px wide. It is shifted to display the correct image slice with css background-position: 0 -50px; the overflow within the H4 tag (height 24px) is hidden with css overflow: hidden. works fine as html, but CFdocument's PDF output displays the full 800px high image, not positioned, nor overflow in H4 hidden. any ideas?
Is it possible to open a file in coldfusion ?My problem is I have a list made with cfdirectory and I want to open the files (.txt) in this list via the browser.
We have been running CF 11 U5 for a while now with no problems at all. We run CF Enterprise on IIS 8.5 on Server 2k12 64bit.Recently a few of our clients have been complaining that when they upload files via our various methods of file uploads they get errors back. These errors are browser errors telling them connection has been reset, or page cannot be display etc.This only seems to happen once the file size goes above 300-400kb. We have no restrictions in IIS as 95% of our other clients have no trouble uploading files up to 200MB.Nothing has changed to any of the code that runs these uploads. We have a mixture of standard pages with form post which CF then uploads the image to some pages that use jquery file upload plugins which post to CF pages that do the upload.It doesn't seem that anything is ever uploaded and the user gets the error back pretty quickly within 2-5 seconds of starting the upload. The uploaded files are usual images (jpg) or zip files.This only seems to affect a li
We're runnig CF8 on Solaris 9. I'm uploading an image and simply reading it to the browser. Why am I getting this error message? An exception occured while performing the writeToBrowser cfimage action. coldfusion.image.ImageReader$UnsupportedImageFormatException: The png|jpg|jpeg|gif image format is not supported on this operating system. The error occurred in /opt/httpd/docroot/www/oirm/das/idb/cf8present/upload/upload.cfm: line 25 Also, does anyone know about anything about coldfusion image object. The following gets assigned to any image that I upload (the number after the @ sign changes for each) coldfusion.image.Image@17f79a8 Very frustrating!
I have the following function and in the WHERE clause, the s.subsiteURL no like '/training%' is working or something. It's still selected a sub site with URL starting with /training. Is there a way to output the result of this function to the browser? I have tried the <cfdump var="#qryCSPages#"> but it's not dumping anything on the screen.<cffunction name="getCommonSpotPages" access="public" returnType="query"> <cfset var qryCSPages = queryNew("")> <cftry> <!--- // get CommonSpot site URLs ---> <cfquery name="qryCSPages" datasource="#application.sitemap.sDSN#"> select p.ID, s.subsiteURL, p.filename, p.DateContentLastModified, u.publicFileName, p.uploaded as bIsUploaded, s.uploadURL, (select fieldValue from data_fieldValue dfv where p.ID = dfv.pageID and dfv.fieldID = #application.sitemap.nPriorityFieldID# and dfv.versionState = 2 ) as nPriority, (select fieldValue from data_fieldValue dfv where p.ID = dfv.pa
I have created a component with properties called employee.cfc <cfcomponent> <cfproperty name="FirstName" type="string"> <cfproperty name="LastName" type="string"> </cfcomponent> I have a web service that receives an array of employees to update: the saveEmployees() function has this argument: <cfargument name="employees" type="employee[]" required="true"> the getSOAPRequest() method call renders a SOAP envelope with the following inner structure for the employees: <employees soapenc:arrayType="ns2:employee[2]" xmlns:ns2="http://soap.mynamespace.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="soapenc:Array"> <employees xsi:type="ns2:employee"> <firstName xsi:type="xsd:string"> Mark </firstName> <lastName xsi:type="xsd:string"> Smith </lastName> </employees> <employees xsi:type="ns2:employee"> <firstName xsi:type="xsd:string"> John </firstName> <lastName xsi:type="xsd:st
We have ColdFusion10 (update 17) Standard Edition installed on a Windows 2008 R2 server. It has been installed and running fine for a couple years, but in the last few weeks we have had trouble starting the service. After reboot it wouldn't start automatically or through a .bat file that checks to make sure it's started every morning. It also would time out starting from the Server Manager console. We were able to start it from the command line using net start "COLDFUSION 10 APPLICATION SERVER", but now it will not work that way either.The logs do not appear to show anything unusual as far as I can tell. The only way we have been able to get it started is to run cfstart.bat in the cfusion\bin directory. The websites are available, but the actual service is not running (at least as far as windows monitoring is concerned).This error is showing up in the server event log when we try to start the service:One possibility that we have wondered about is that Microsoft .NET Framework updates c
I'm building a flex app and using a VO to manage the data so its persistent and loosely coupled from the UI. Ordinarily I could just pass a flex form value to a cfc argument via <mx:remoteObject><mx:method></mx:remoteObject> syntax for passing each form element in a function that calls the remote object and function located in the CFC. What I'm wanting to do is pass the entire VO into a coldfusion function for login and have CF return an array of values back to the VO to store the user's account information and populate the flex dashboard from the VO. How do I properly pass the entire VO to Coldfusion from flex without naming each value in the VO?
I have never built a report...is there a how to build a CF report tutorial? The help is populated strangely and selecting one of these items just passes me to another screen populated in the same manner and still no detailed instructions are ever listed. What is this...have I loaded the wrong CF report builder, or do I need to download and install a new/newer help file?
We have a existing CFusinMX web site. Recently, we re-set up web server, (changed to Window server 2008), and updated CFusionMX to ColdFusion 11, and ColdFusionBuilder 3.We only need one sub part of coldfusion web application continue to use. So I used ColdFusionBuilder 3 to set up it at DefaultLocal server. If I remotely log in to the server, make sure DefaultLocal CF Servers is running, I can browse to the ColdFusion application web pages locally and remotely.However, as soon as I log off the remote server, the ColdFusion pages cannot display. The Error message shows " This page can't be displayed".I checked back, saw the CF Server "DefaultLocal" was stopped. How to keep DefaultLocal CF server running even I log off remote server?Any suggestion, help will be appreciated.Thanks a lot!Jane
I'd like to demo cfreport using a demo .cfr file...would there be a repository for example code in CF?I'd just like to see how the cfreport tag could help me make our reports colorful and be able to add charts/graphs.Would there be some sample code I could modify for my evaluation of the tag (cfreport).Kevin
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.