coldfusion-8

microsoft xml excel - row formatting

倖福魔咒の 提交于 2019-12-21 12:12:58
问题 I am using Microsoft XML Excel with ColdFusion to display my query results on Excel sheet. I am using multiple worksheets. I see there is a border style property available. is there a way I can set background color for rows and other styles. I don't see good documentation on how to do all these. Thanks 回答1: See XML in Excel and the Spreadsheet Component for the full documentation. But it often helps to just create a spreadsheet, save it as *.xml and review the output. Example: ... <Styles>

Actual XML file location while dealing with CFchart

耗尽温柔 提交于 2019-12-20 07:44:06
问题 Could anyone tell me whether I need to place xml file in a separate directory while working with coldfusion? Right now I have kept my xml file in the same directory where I have .cfm file. When I run the file(cfm) it says, Could not locate the style file filename.xml Here is the error: Could not locate the style file VerticalXLabels.xml. Ensure that the file exists and is readable. The error occurred in C:\PATH\Testing_Connections.cfm: line 296 Called from C:\PATH\Testing_Connections.cfm:

Handling 500 JRun servlet in ColdFusion

拜拜、爱过 提交于 2019-12-20 03:37:14
问题 All - Is there a way to handle a 500 JRun servlet error in ColdFusion? I tried using cferror as well as using the site-wide handler in ColdFusion admin, but it does not seem to be working. Here is the error message 500 ROOT CAUSE: java.lang.IllegalArgumentException at coldfusion.filter.FormScope.parseName(FormScope.java:408) at coldfusion.filter.FormScope.parseQueryString(FormScope.java:360) at coldfusion.filter.FormScope.parsePostData(FormScope.java:328) at coldfusion.filter.FormScope

View cfhttp request

江枫思渺然 提交于 2019-12-18 08:25:57
问题 I would like to view the actual http request that gets sent via my cfhttp tag. What is the best tool to capture this? Specially, I want to see exactly what headers and content are being sent. 回答1: To expand on what Edward has said and to answer your question about how you can view a request on ColdFusion; Create a page that simply dumps everything out from GetHttpRequestData(). Have a look at the livedocs on getHttpRequestData() for more information. 回答2: Use Charles http proxy. Add the

ColdFusion not catching NoClassDefFoundError

陌路散爱 提交于 2019-12-17 10:00:27
问题 I am using ColdFusion 8. I would like to catch a NoClassDefFoundError exception in ColdFusion however I can't... It still fails and logs the error in the exception.log file. Here is what I tried. <cftry> <cfset myJavaObject.myMethod()> <cfcatch type="any"> <cfdump var="#cfcatch #"> </cfcatch> <cfcatch type="java.lang.Throwable"> Horrible exception. <cfdump var="#cfcatch #"> </cfcatch> </cftry> But this does not work. Could you please show me how to do that? I need to catch this error at a

The symbol you provided is not a function

纵然是瞬间 提交于 2019-12-14 04:25:29
问题 Key points before reading further All variables are properly var'ed (you'll have to trust me) Scopes are not being reset while these long-running processes are happening When dumping the metadata for the supposedly missing/invalid method, I get the right information There are only two places where the name of this method are referenced in the application. Once where it's defined, and once were the method is called in the code below. I have a very strange intermittent error that I can't seem

Must one use an MVC FrameW to produce clean URL's?

大兔子大兔子 提交于 2019-12-14 03:44:29
问题 The host that I want to host with does not support server side url rewriting, thus no third party tools can be installed to rewrite the url's. This is Coldfusion 8, on windows, IIS. The other alternative that I know of is to use a framework, but I do not feel like taking that route (time), for the application works well as it is (but the URL). Can clean urls be generated by purely CF? I do not need the clean url's for seo, rather it will be for the user's easy reference to their page. E.g.

Can we renew session in Coldfusion?

Deadly 提交于 2019-12-14 00:36:46
问题 I am storing 5-6 variable values in my session. Any suggestions on how can I renew my session struct when its about to expire? I am using Coldfusion 8. Thanks!! 回答1: Use AJAX to ping the server to keep the session alive Or just simply extend the session timeout timeSpand. 回答2: Any call to a CFM page from that session would cause the session to be extended. What I have seen done is a JS timer will be running and end shortly before the session expires. When the timer runs up it triggers a popup

How do you configure a ColdFusion 8 datasource to connect to a local SQL Server 2008 server?

十年热恋 提交于 2019-12-13 04:57:59
问题 I've set up a local SQL 2008 Server, enabled SQL Authentication, created a user for ColdFusion to use and verified that I can connect with that username and password using SSMS. (Connect using MACHINENAME\SQLEXPRESS) However, I am unable to successfuly add the datasource in my CF Administrator, with the error being: Error establishing socket to host and port Is there additional configuration of the server or ColdFusion that is necessary to connect? 回答1: You should be able to just use

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=