coldfusion-9

coldfusion 9 dynamically call method

浪子不回头ぞ 提交于 2019-12-12 18:11:31
问题 I'm attempting to build a method call from strings that have been passed into an object that refer to another object. normally when calling an object we write the code like this: application.stObj.oNewsBusiness.getNews(argumentCollection=local.stArgs); However what I have done is created an array that contains the object name, the method name and the argument collection. <cfscript> local.stArgs = {}; local.stArgs.nNewsID = 19; local.stArgs.sAuthor = "John"; local.aData = []; local.aData[1] =

Date format error in ColdFusion and mySQL

回眸只為那壹抹淺笑 提交于 2019-12-12 17:34:00
问题 I have set up a file that reads an xml file from one database and inserts that data into another. All works well except a strange error on the date format. The date format I need is yyyy-mm-dd . However, the original data is set up as format dd-mm-yyyy . My code reads and inserts all the data, but when it reads the date field, there is an issue when the day is under 12. It strangely inserts it the other way around. If a date is 11/10/2014 , it pulls it in as 2014/11/10 But, if a date is 13/10

Wrong HBM mappings when using a mapped superclass in an inheritance graph for ColdFusion 9.0.1 Hotfix 2

不羁的心 提交于 2019-12-12 17:28:11
问题 Let's say I have an inheritance graph where the base class extends a mapped superclass: component name="Entity" mappedSuperClass="true" { property name="CreatedOn"; } component name="Pet" extends="Entity" table="Pet" discriminatorcolumn="pet_type" { property name="PetId" fieldtype="id" generator="native"; property name="Name"; } component name="Dog" extends="Pet" table="Pet" discriminatorvalue="Dog" { property name="FavoriteFood"; } component name="Cat" extends="Pet" table="Pet"

Workaround for CFIDE Not Web Accessible for AJAX and Flash Built-Ins

蓝咒 提交于 2019-12-12 17:15:43
问题 Several pieces of ColdFusion functionality - media player and multi file uploader - are predicated on JavaScript libraries being available at /CFIDE/scripts , even if the scriptsrc is configured in Application.cfc . See the bug here for a point of reference: http://www.elliottsprehn.com/cfbugs/bugs/83328 Unfortunately exposing the CFIDE directory as-is from a ColdFusion installation is a security risk. So I'm trying to decide the right path forward to enable my application's use of this

Generating an image from HTML with ColdFusion

我与影子孤独终老i 提交于 2019-12-12 11:02:23
问题 I have a ColdFusion page with a styled HTML table in it. What I would like to be able to do is set up a feature that allows our customers to save the table as an image file, for use in their slide shows. I have read some of the documentation for cfcontent however, I am beginning to get the feeling that I will need a third party library. I was hoping someone could shed some light on this. 回答1: You could render your html table to a static page, then call http://code.google.com/p/wkhtmltopdf/

How to configure the ColdFusion Eclipse debugger

孤街醉人 提交于 2019-12-12 10:49:52
问题 I'm running the ColdFusion Builder 3 (Express edition) to connect to a locally running ColdFusion 9 server (windows machine). When I set up the RDS configuration on the CF Builder and click on Test Connection everything is ok. But when I click on Test Debugger I get the following error: Could not initialize class coldfusion.log.CFLogs Is this a problem with CF Builder 3 trying to access the CF 9 server? 回答1: According to this Adobe forum post they resolved the same issue by changing the port

Why can't I update Java from 1.6 to 1.7 on Coldfusion 9.0.2 on Mac OSX 10.8.5

久未见 提交于 2019-12-12 04:37:45
问题 I'm running OSX 10.8.5 and recently installed Coldfusion 9.0.2 and applied the hotfix so I'm running CF Version 9,0,2,282541 (which should be compatible with Java 1.7). My prod environment is running Java 1.7 so I'm trying to replicate that on a dev machine. The Java Version currently being used by CF is 1.6.0_65 . My dev box has Java running in multiple locations as follows: System/Library/Java/JavaVirtualMachines/1.6.0.jdk Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk When I run java

Am I utilizing <cfthread> correctly for this solution?

岁酱吖の 提交于 2019-12-12 04:09:57
问题 I am trying to do multiple image uploads via the <cffileupload> tag. The tag calls a file called fileupload.cfm to process / finalize the image. Inside that image I want to start off a thread (here is where I might not understand threading, so let me know) so that I can reply 'image uploaded' back to the flash upload app, but initiate a thumbnail generation process (which might last 1 min or so, depending on the file size). So far I added something like: <!--- BUILD A THREAD TO CREATE /

Trying to replace all evaluate functions with dynamic notation in ColdFusion 9

≡放荡痞女 提交于 2019-12-12 04:01:52
问题 Hello I have been tasked with replacing all evaluate() functions in this coldfusion app. I am having some issues with some fairly complex evaluations and I just can't figure it ou. When it is a simple change like This: <cfif isNumeric(evaluate("form.value_#REPORT_FIELD_ID#"))> To This: <cfif isNumeric(form["value_" & REPORT_FIELD_ID])> It's all good but for this: <cfif evaluate("qrySearch.#qryReportFields.FIELD_NAME[qryReportFields.currentRow]#") eq true> Not so much I have tried several

Getting Queries of Queries error

丶灬走出姿态 提交于 2019-12-11 20:37:39
问题 I am using the following code and wondering why I am getting "Queries of Queries" error? <cfquery name="findpercentage" datasource="#mydatasource#"> SELECT Count(TableId_bi) AS Total_Events ,Sum(CASE WHEN 'OPEN' = Event_vch THEN 100 END) / Count(*) AS OPENS ,Sum(CASE WHEN 'BOUNCE' = Event_vch THEN 100 END) / Count(*) AS BOUNCE ,Sum(CASE WHEN 'DEFERRED' = Event_vch THEN 100 END) / Count(*) AS DEFERRED ,Sum(CASE WHEN 'DROPPED' = Event_vch THEN 100 END) / Count(*) AS DROPPED ,Sum(CASE WHEN