coldfusion

How to identify what version jar is running under ColdFusion

故事扮演 提交于 2019-12-13 05:25:19
问题 How can I update the jar files to the latest version which comes with coldfusion installation? I can see jar files, with different versions, under different locations. How can I confirm which version of the jar is currently running and what are the locations ColdFusion looks for these jars? For example, in coldfusion\lib I have these jars: commons-collections.jar commons-collections.3.1.jar commons-collections.3.2.jar Then in another location \Coldfusion\cfusion\lib , I have: commons

ColdFusion Chart x-axis label limits

佐手、 提交于 2019-12-13 05:23:39
问题 I'm using cfchart tag to draw my line chart in ColdFusion. My x-axis range is from 1 to 24 and it is fix number of labels for all my charts. But in my chart, I may have values for first 10 (or any fix number from 1 to 24) points. I mean, my query row count will be 10. So query with 24 points will show full graph ad query with 10 points will show x-axis values from 0 to 10. But I want to scale the chart for 24 points regardless of query count. cfchart has an option called scaleFrom and scaleTo

Sorting a 2D array in Coldfusion

怎甘沉沦 提交于 2019-12-13 04:59:39
问题 I have an array that I would like to sort according to 2 values. The first one works fine but i cant seem to get the second one right This is how I am sorting according to the first value: <cfloop index="outer" from="1" to="#arrayLen(result)#"> <cfloop index="inner" from="1" to="#arrayLen(result)-1#"> <cfif result[inner][7] lt result[outer][7]> <cfset arraySwap(result,inner,outer)> </cfif> </cfloop> </cfloop> The second value that I would like to sort by is not a numeric value, it is a

spreadsheetFormatRow stops formatting

老子叫甜甜 提交于 2019-12-13 04:48:13
问题 I am creating a spreadsheet with CF10 and I am adding rows and then formatting them. I am using spreadsheetFormatRow and it is working, but then it just stops formatting. I cannot format after a certain point. I am not sure what the issue is. Such as this: <cfset spreadsheetAddRow(variables.newsheet," ")> <cfset spreadsheetAddRow(variables.newsheet,"Branch Activity")> <cfset spreadsheetFormatRow(variables.newsheet,variables.formatstyle,'#variables.newsheet.RowCount#')> <cfset

Best method in writing this ColdFusion based report

人盡茶涼 提交于 2019-12-13 04:45:57
问题 I'm looking to see what the best way in writing this report which I'm developing in ColdFusion 10 would be. Basically, it consists of reading data from two tables in a MSSQL database, applying some conditions based on what it finds on a specific column, populating the data into excel and sending it out via email. I've written reports before where it's as simple as reading data from the table, using POIUTILITY to create the spreadsheet and sending it via email, but this one is a little

CFDocument: coldfusion.document.spi.DocumentExportException: java.lang.NullPointerException

萝らか妹 提交于 2019-12-13 04:39:44
问题 I am trying to create a pdf using cfdocument but ColdFusion keeps throwing an exception and I can't find a way to work around this. This is the code that I am using: <cfdocument format="pdf" filename="rep_report.pdf" overwrite="yes" name="rep_report"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Inconsistent Q of Q Behaviour

一世执手 提交于 2019-12-13 04:38:37
问题 Using ColdFusion Server Enterprise 9,0,1,274733. Has anyone seen this before? The following code executes without error. <cfquery name="x" datasource="dw"> select event_code, event_name from event </cfquery> <cfquery name="y" dbtype="query"> select event_code || event_name fred , event_code from x </cfquery> Two things to notice are that I declared an alias without using the keyword "as", and I used || to concatenate strings. However, if I qualify the first event code, like this: <cfquery

How to record url variables (query string) from an img src attribute on the server

▼魔方 西西 提交于 2019-12-13 04:34:30
问题 I want to do something similar to what Google Analytics does to track visitor information. Google Analytics' javascript file puts a 1x1 img on your site. When a visitor comes to your site, they load that IMG from Google. The IMG SRC attribute includes a number of URL variables about your visit. For example: <img src="http://www.google-analytics.com/__utm.gif?utmwv=5.4.6&utms=1&utmn=116154048&utmhn=www.example.com&utmcs=UTF-8&utmsr=1920x1080&utmvp=1439x356..."> When Google receives the request

How to delete a page in Mura

我怕爱的太早我们不能终老 提交于 2019-12-13 04:31:11
问题 I tried the copy all option in the Mura CMS 5.4 admin in order to create another menu item in the top level navigation. It created multiple copies of the same pages. I would like to delete some of those pages but it is not allowing me to. The red cross seems to be grayed out. When I went to version history to see if I could delete all of the versions there but it would not allow me. Now the status also shows it is published. How do I delete those pages? I have admin permissions for this site.

Not getting desired output after executing a QoQ

大城市里の小女人 提交于 2019-12-13 04:24:21
问题 I'm running the following SQL queries and am not getting a desired output: <cfquery datasource = "XX.XX.X.XX" name="master"> SELECT count(Timedetail) as Occurances, date_format(Timedetail,'%m-%d-%Y') FROM MyDatabase WHERE EVENTS = "FIRST" GROUP BY Timedetail ; </cfquery> <cfquery dbtype="query" name="detail"> SELECT * FROM master WHERE Timedetail >= <cfqueryparam value="#form.startdate#" cfsqltype="cf_sql_date"> AND Timedetail < <cfqueryparam value="#dateAdd('d', 1,form.enddate)#" cfsqltype=