coldfusion

Coldfusion: cfspreadsheet reading date incorrectly

徘徊边缘 提交于 2019-12-13 02:56:27
问题 Im using cfspreadsheet to read data from spreadsheets inside one of my applications. I've had a great deal of difficulty dealing with date columns. If I format the cell as date english (NZ) it displays right in the spreadsheet, but when I try to upload it switched the day and month. But If I change the format to a custom "dd/mm/yyyy" format it will upload without a problem. Why would using the default date formats within the spreadsheet mess up the format when a custom one doesn't? Is there a

Apache won't start with ColdFusion 10: mod_jk.conf procedure not found

こ雲淡風輕ζ 提交于 2019-12-13 02:52:42
问题 I'm trying to install ColdFusion 10 on Apache 2.4.4 with Windows 7. I set up Apache et al with WAMP Server (I needed PHP as well), made sure everything was working great there, and then ran the ColdFusion installation after. ColdFusion installation seemed to complete successfully, but Apache was not able to restart with ColdFusion enabled. Windows Event Viewer reports the following error with Apache Service: httpd.exe: Syntax error on line 548 of C:/wamp/bin/apache/Apache2.4.4/conf/httpd.conf

How can I show the column names in my JSON file format? (Through ColdFusion)

偶尔善良 提交于 2019-12-13 02:49:45
问题 Through the following ColdFusion .cfm file, I am able to get a .json string, which shows me the requested data: json1.cfm <cfsetting showdebugoutput="no"> <cfheader name="Content-Type" value="application/json"> <cfquery name="GetData" datasource="myDataSource"> select distinct ap1, ap2, nombre, idcargo, idencal, telefono, email, cve_nivel, sexo FROM vlayout_1 where cct='13DCC0003S' </cfquery> <cfoutput> #SerializeJSON(GetData, false)# </cfoutput> Once I upload it on my local server, this is

ColdFusion Google Adwords Business Component Error

僤鯓⒐⒋嵵緔 提交于 2019-12-13 02:49:45
问题 I am using Martin Orth's ColdFusion API for Google Adwords. I have been able to fix some errors to get the API working in most cases, but am running into a roadblock when I try to use the business.cfc component. I try to create the component the same way I have successfully created them for other components of the API with the syntax: cfset oBusiness=createObject("component","com.google.adwords.api.v12.business")> The results in a: coldfusion.xml.rpc.CFCInvocationException: [java.lang

CFspreadsheet adding a % to format a column

社会主义新天地 提交于 2019-12-13 02:48:02
问题 I am using CF10 and trying to add a % sign to a spreadsheet. I am having an issue with adding a % sign on my 5th column entries. (Only the entries starting the second row (not the header) and not the blank cells when the query is done running. <cftry> <cfset objSpreadsheet = SpreadsheetNew()> <cfset assocRows = ''> <!--- Create and format the header row. ---> <cfset SpreadsheetAddRow( objSpreadsheet, "Associate Name,Location,Checklists Generated by Associate,Checklists Generated by Selected

CF10 Fieldboost on cfindex has no effect

百般思念 提交于 2019-12-13 02:44:42
问题 Maybe this is a new, mostly unused feature, but I am trying to create a collection based on a query from our DB. It's a simple Q&A and I'd like to rank the matches in the question higher than the answer. Seems logical as currently a search for "register for classes" the question "How do I register for classes" ranks lower than "How to I purchase books for my classes" because content in the books answers I guess matches better. So I'd like to bump the Q&A's if the question matches really well

Execute coldfusion code stored in a string dynamically?

只愿长相守 提交于 2019-12-13 02:36:36
问题 I have an email body stored as a string in a database, something like this: This is an email body containing lots of different variables. Dear #name#, <br/> Please contact #representativeName# for further details. I pull this field from the database using a stored proc, and then I want to evaluate it on the coldfusion side, so that instead of "#name#", it will insert the value of the name variable. I've tried using evaluate, but that only seems to work if there's just a variable name. It

Connect ColdFusion to SQL Server database instance

我是研究僧i 提交于 2019-12-13 02:36:27
问题 I am trying to connect to a SQL server (2008) database instance in ColdFusion 9 but there is no where to put an instance name in the CF administrator. I can get in with .net using a connection string like so: Server=myServerName\myInstanceName;Database=myDataBase;User Id=myUsername; Password=myPassword; There is a place to enter a connection string in ColdFusion but I don't seem to be able to connect to the right instance (it seems to connect to the default instance). Is there a way to

NullPointerExceptions in ColdFusion 9 and ColdBox on localhost

六眼飞鱼酱① 提交于 2019-12-13 02:29:42
问题 I'm running CF 9.0.1 Developer and Coldbox 3.0.0 on my local machine (64-bit Windows Vista running 32-bit CF9 on Apache). I'm working on an application that I've checked out from SVN and deployed locally. Everything seems to be working correctly, but my application log is filling up with entries like this: Apr 18, 2011 12:41 PM Error jrpp-7 exception.log has an extremely long stack trace for each exception, maybe 150 lines or so. It starts with this: "Error","jrpp-4","04/18/11","11:07:30",,""

How can I split a range of values among a “pool” of threads?

随声附和 提交于 2019-12-13 02:25:44
问题 I have some code that processes around 30,000 records. The basic outline is like this: startRecordID = 2345; endRecordID = 32345; for(recordID=startRecordID; recordID <= endRecordID; recordID++){ // process record... } Now, this processing takes a long time, and I'd like to have a thread pool of 15 threads and give each thread a list of recordIDs to process, and then join them all at the end. In the past I accomplished this with code that looked something like this, where recordLists was an