coldfusion

Coldfusion Scopes Clarification

ε祈祈猫儿з 提交于 2019-12-24 06:53:58
问题 I have been reading about the CF Scopes, and am comfortable with the CFC scopes and their implications (detailed here), however, whenever I search for CF scopes it almost always references in the context of a CFC - So I was hoping for some clarification around scopes in CFM pages. I am working with CF 9/10 so only really interested in how the scopes behave in these releases. What scopes are available on a CFM page - do CFM pages have the same concurrency problems as can happen elsewhere, or

Coldfusion Scopes Clarification

喜夏-厌秋 提交于 2019-12-24 06:53:36
问题 I have been reading about the CF Scopes, and am comfortable with the CFC scopes and their implications (detailed here), however, whenever I search for CF scopes it almost always references in the context of a CFC - So I was hoping for some clarification around scopes in CFM pages. I am working with CF 9/10 so only really interested in how the scopes behave in these releases. What scopes are available on a CFM page - do CFM pages have the same concurrency problems as can happen elsewhere, or

Memory Leak When Using jQuery .Get API and setTimeout

只谈情不闲聊 提交于 2019-12-24 06:41:48
问题 I am using jQuery 1.4.4 and use the .get API to check to see if I need to refresh data on a page or not. The problem is that there is a memory leak somewhere in the snippet below that I cannot seem to find. You will notice that I do a lot of potentially useless things here like deleting and add back the timer all in an effort to figure out what is going on. I assumed that doing the .load was causing the problem, but at this point, the .load doesn't occur very frequently at all, only when the

Error in ColdFusion Javacast array to class from loadPaths

狂风中的少年 提交于 2019-12-24 05:51:29
问题 I am trying to use Elasticsearch's Java API. I am trying to create a RestClientBuilder. Host=createObject("java", "org.apache.http.HttpHost").init(variables.HostName, variables.Port); Node=createObject("java", "org.elasticsearch.client.Node").init(Host); RestClient=createObject("java", "org.elasticsearch.client.RestClient").builder(Javacast("org.elasticsearch.client.Node[]", [Node])).build(); I get the error Cannot convert the value to Java array because type org.elasticsearch.client.Node is

Is it possible to have dynamically generated query names in ColdFusion?

限于喜欢 提交于 2019-12-24 04:58:51
问题 What I am trying to do is <cfloop array="#LOCAL.someArray" index="LOCAL.aString"> <cfset LOCAL.queryName = "uniqueQueryName_" & LOCAL.aString /> <cfquery name="#LOCAL.queryName#" datasource="db" cachedwithin="#CreateTimeSpan(1,0,0,0)#"> SELECT count(*) AS c FROM someTable </cfquery> <cfdump var="#LOCAL.queryName#" /> </cfloop> is this possible, or is there a better way to do it? Edit This works with <cfloop query="LOCAL.queryName"> but not when I try to do <cfset ArrayAppend(LOCAL.returnArray

coldfusion - cfprint issues with large spool files

≯℡__Kan透↙ 提交于 2019-12-24 03:35:32
问题 I am using cfprint from ColdFusion to print multiple PDFs from a directory. The problem I am having is that when the files are spooled to the printer the size of the file dramatically increases and slows down everything. The file in the folder is 125K and when it is in the printer spool it increases up to 15.7MB. Here is the ColdFusion code: <cfprint source="[FILELOCATION]/[FILE].pdf" color="yes" printer="[printer name]"> The files will eventually print but it can take upwards of 15-20

coldfusion - cfprint issues with large spool files

混江龙づ霸主 提交于 2019-12-24 03:35:07
问题 I am using cfprint from ColdFusion to print multiple PDFs from a directory. The problem I am having is that when the files are spooled to the printer the size of the file dramatically increases and slows down everything. The file in the folder is 125K and when it is in the printer spool it increases up to 15.7MB. Here is the ColdFusion code: <cfprint source="[FILELOCATION]/[FILE].pdf" color="yes" printer="[printer name]"> The files will eventually print but it can take upwards of 15-20

Compressing a PDF document generated by coldfusion

喜你入骨 提交于 2019-12-24 03:27:43
问题 I'm trying to overhaul a pdf report generation application built in CF8 and they have an interface which generates a 50 page legal report as a pdf and sends it out about 100x a day. However, its very cumbersome and bogs down an already overworked server. Is there a good PDF compression script that I can run with coldfusion or a way to integrate with Adobe acrobat to have it compress the pdf before the server sends the pdf via email? The system is already setup using the available Coldfusion

Issue with PUT request in ColdFusion 10

流过昼夜 提交于 2019-12-24 03:21:02
问题 While working with a API , I need to make a PUT request to a URL along with some parameters needs to be passed as POST parameter. Locally I have created 2 files calling.cfm and caller.cfm to test cfhttp with PUT request. But each time it is throwing error The request has exceeded the allowable time limit Tag: cfhttp caller.cfm <cfhttp url="http://cflocal.com/jquerySliderApp/calling.cfm" method="put"> <cfhttpparam type="header" name="Content-Type" value="application/x-www-form- urlencoded;

CFEXECUTE seems to not execute PowerShell in ColdFusion 11

雨燕双飞 提交于 2019-12-24 02:52:22
问题 Here is a sample: <cfset cmd="get-date -format g" /> <cfset args="-inputformat none -Command " & cmd /> <cfoutput> <cfexecute name="powershell.exe" variable="result" errorvariable="err" arguments="#args#" timeout="99" /> <p>Result: <cfif result neq "">#result#<cfelse>None</cfif></p> <p>Error: <cfif err neq "">#err#<cfelse>None</cfif></p> </cfoutput> On Windows 2008 R2 with ColdFusion 10, this will accurately put the PowerShell command's output into the result variable. After upgrading to