coldfusion-8

Coldfusion - How to loop through an Array of Structure and print out dynamically all KEY values?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 17:43:25
问题 Giving the Array of Structure below: I am able to print out all values from all fields by doing: <cfset ColumnNames = structKeyArray(ApiData[1])> <cfset ColumnLength = ArrayLen(ColumnNames)> <cfloop from="1" to="#ArrayLen(ApiData)#" index="i"> <cfdump var="#ApiData[i].Created#"> <cfdump var="#ApiData[i].Name#"> ...and so on Now I am trying to loop through all fields so that I dont have to actually write the name of each field. How do I do this dynamically? Something like: <cfloop from="1" to=

ColdFusion 8 to ColdFusion 10 Migration: CFloginUser Not Working As Expected

会有一股神秘感。 提交于 2019-12-04 15:31:29
After upgrading from CF8 to CF10, moving all files and databases and jumping through all the configuration hoops, the new version of the site is up and running, but the authentication/login is not working. Here are the environments: Old server: ColdFusion Enterprise 8,0,1,195765 Operating System: Windows Vista* OS Version: 6.0 Update Level: .... hf801-00007.jar IIS Version: 7 (*not sure where that "Vista" comes from? The System Information says "Windows Server 2008 Datacenter without Hyper-V") New server: ColdFusion Enterprise 10,0,11,285437 Tomcat Version: 7.0.23.0 Operating System: Windows

microsoft xml excel - row formatting

旧时模样 提交于 2019-12-04 05:10:30
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 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> <Style ss:ID="s23"> <Interior ss:Color="#800080" ss:Pattern="Solid"/> </Style> <Style ss:ID="s24"> <Interior

Creating QR Code with Coldfusion

我的未来我决定 提交于 2019-12-04 03:54:39
Has anyone gotten the "Open Source QR Code Library" to work with ColdFusion? I need to generate QR Codes in ColdFusion. I also found this tutorial on how to generate it using Zxing . But the tutorial is not clear on how to configure the files, e.g. what needs to be in which dir... Any help and alternatives are welcomed, thanks. Zxing uses two (2) jars: core.jar and javase.jar . The easiest way to install them is to place both jars anywhere in the CF classpath (example: C:\ColdFusion8\wwwroot\web-inf\lib). Then restart the CF server. That is it. Note: You can either compile the zxing jars

How to restart Coldfusion Application Server when application times out?

送分小仙女□ 提交于 2019-12-03 22:38:38
问题 Is there any way to restart the CF server through the Application.cfc, when the application times out? As per Adobe documentation, they showed as follows: <cffunction name="onApplicationEnd"> <cfargument name="ApplicationScope" required=true/> <cflog file="#This.Name#" type="Information" text="Application #Arguments.ApplicationScope.applicationname# Ended" > </cffunction> What I would like to do is replace the <cflog> above with <cfexecute> as follows: <cfexecute name = "C:\CFRestart.bat"

Coldfusion - How to loop through an Array of Structure and print out dynamically all KEY values?

本小妞迷上赌 提交于 2019-12-03 11:40:06
Giving the Array of Structure below: I am able to print out all values from all fields by doing: <cfset ColumnNames = structKeyArray(ApiData[1])> <cfset ColumnLength = ArrayLen(ColumnNames)> <cfloop from="1" to="#ArrayLen(ApiData)#" index="i"> <cfdump var="#ApiData[i].Created#"> <cfdump var="#ApiData[i].Name#"> ...and so on Now I am trying to loop through all fields so that I dont have to actually write the name of each field. How do I do this dynamically? Something like: <cfloop from="1" to="#ArrayLen(ApiData)#" index="i"> <cfloop from="1" to="#ColumnLength#" index="i"> <!---<cfdump var="

How can I clean HTML tags out of a ColdFusion string?

家住魔仙堡 提交于 2019-12-03 11:36:02
I am looking for a quick way to parse HTML tags out of a ColdFusion string. We are pulling in an RSS feed, that could potentially have anything in it. We are then doing some manipulation of the information and then spitting it back out to another place. Currently we are doing this with a regular expression. Is there a better way to do this? <cfloop from="1" to="#ArrayLen(myFeed.item)#" index="i"> <cfset myFeed.item[i].description.value = REReplaceNoCase(myFeed.item[i].description.value, '<(.|\n)*?>', '', 'ALL')> </cfloop> We are using ColdFusion 8. Disclaimer I am a fierce advocate of using a

How to get list of scheduled tasks and last run results in ColdFusion?

六月ゝ 毕业季﹏ 提交于 2019-12-03 06:57:58
问题 We're trying to build a dashboard for our cron jobs ---- CF, Java, SQLServer, etc. so that we can see when things were run last, what the result was, and when they're scheduled to run next. Is there a way with the CFAdmin API or some undocumented <cfschedule> trick to get a list of: What tasks are scheduled? What the last run time was? Did it succeed? When is it scheduled to run again? We're currently on CF8, but will be upgrading to CF9 within a few weeks. 回答1: I did a little research into

Why should I resize an image in Coldfusion if the file size doen't decrease and the quality of the image suffers?

主宰稳场 提交于 2019-12-02 18:52:06
问题 Just wondering: I'm trying to set up an adaptive image handler in Coldfusion8, which resizes images for smaller screensizes. I have it working allright and am currently playing around with the different resize options found here What I notice is no matter what method I'm using, they all take time, reduce the image quality and not really reduce the image size, so for example: IMG 1 IMG 2 Original 23K 900x360px 53K 900x360px Blackman 22k 320x128px 52K 320x128px highPerformance 21K 320x128px 32K

Why should I resize an image in Coldfusion if the file size doen't decrease and the quality of the image suffers?

核能气质少年 提交于 2019-12-02 13:40:25
Just wondering: I'm trying to set up an adaptive image handler in Coldfusion8, which resizes images for smaller screensizes. I have it working allright and am currently playing around with the different resize options found here What I notice is no matter what method I'm using, they all take time, reduce the image quality and not really reduce the image size, so for example: IMG 1 IMG 2 Original 23K 900x360px 53K 900x360px Blackman 22k 320x128px 52K 320x128px highPerformance 21K 320x128px 32K 320x128px nearest 25K " 38K " The idea was to resize images for smaller displays. Right now I'm not