coldfusion-9

ColdFusion 9 line debugger for eclipse

China☆狼群 提交于 2019-12-03 19:20:36
I see several references within Adobe's documentation regarding the line debugger. Look here, for example: Set up ColdFusion to use the Debugger I see mention of various Eclipse-related settings that I need to make. For example (from above): You can determine whether the Debugger server is configured correctly in Eclipse by selecting Window > Preferences > ColdFusion > RDS Configuration, and then clicking Test Debugger. However, I see no mention of what I have to do to configure my eclipse installation to get this functionality. I assume there is an eclipse plugin I need to install. I'm hoping

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

Coldfusion mapping error

你离开我真会死。 提交于 2019-12-02 12:26:31
Note: If you wish to use an absolute template path (for example, template="/mypath/index.cfm") with CFINCLUDE, you must create a mapping for the path using the ColdFusion Administrator. I went to the administration page but not sure what to put in here. I'm pretty new to coldfusion. anyone got any ideas why this would be happening. CFINCLUDE uses relative paths in relation to the file where the cfinclude is, so if want to include a file in another directory, 1. it has to be inside your wwwroot (or the root directory, or subdirectories) of your site, 2. you can go to other directories by doing

Dealing with MySQL NativeError Code 1366 and SQLState HY000 in coldfusion

喜你入骨 提交于 2019-12-02 11:50:00
Please find the initial few lines of stack trace of the error below: (The column sl is what I have used in the stored procedure code) Incorrect string value: '\xC2\x80\xC2\x99t ...' for column 'sl' at row 1 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946):946 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985):2985 at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631):1631 at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723):1723 at com.mysql.jdbc.Connection.execSQL(Connection.java:3283):3283 at and so on.. The stored procedure code, CODE II which is getting

ColdFusion Insert multiple form fields with one submit

左心房为你撑大大i 提交于 2019-12-02 08:48:05
问题 Summary: I have a CFC that successfully inserts a single set of form fields into a database table. Now I want to modify it to insert multiple records, but am getting an error when I try to process the dynamic form field names. Detail: I have (5) form fields that need to be inserted in to the db at the same time, as different rows. So I looped and incremented the field number. I created 5 static rows for it to be simple. <cfloop index="x" from="1" to="5"> <cfoutput> <input name="ITIProgramName

Coldfusion OutOfMemoryError (CF9/Wheels)

北慕城南 提交于 2019-12-02 08:46:22
问题 I have a function which loops over a query and updates a database row for each item. After about 7000 iterations it's throwing an out of memory error - Java heap space. Is there anything obviously wrong with this code ? <cfloop query=loc.fixItems> <cfset loc.count = loc.count + 1> <cfset var categoryName = loc.fixItems.categoryName> <cfinvoke component="Item" method="updateCode" itemId="#loc.fixItems.itemId#" code="#loc.fixItems.newCode#"/> <!--- Increment counter for category ---> <cfif

ColdFusion Insert multiple form fields with one submit

两盒软妹~` 提交于 2019-12-02 08:05:02
Summary: I have a CFC that successfully inserts a single set of form fields into a database table. Now I want to modify it to insert multiple records, but am getting an error when I try to process the dynamic form field names. Detail: I have (5) form fields that need to be inserted in to the db at the same time, as different rows. So I looped and incremented the field number. I created 5 static rows for it to be simple. <cfloop index="x" from="1" to="5"> <cfoutput> <input name="ITIProgramName#x#" type="text" ..> <input name="ITIProgVer#x#" type="text" ..> </tr> </cfoutput> </cfloop> So the

Need help with multiple URL setup on local CF9/Jrun install

限于喜欢 提交于 2019-12-02 07:51:10
问题 I am running the ColdFusion 9 Developer edition on my local Windows XP machine. I've installed it with the embedded web server, which I believe is JRun. Right now, I can only access web pages at 127.0.0.1:8500/whatever - with all of my apps being placed within separate directories, i.e.: 127.0.0.1:8500/app1, 127.0.0.1:8500/app2, etc. I want to set it up so that I can access each app at: app1.mylocalserver.com, app2.mylocalserver.com, etc. I have edited the hosts file so that these domains

On keypress event, how do I change a ',' to a '~'

时光总嘲笑我的痴心妄想 提交于 2019-12-02 03:34:10
I have to prevent Coldfusion's default list delimiter ',' from being entered into a form input array. I am new to using javascript for validation purposes, and have never tried to switch out the values someone is typing in. How can I snag a comma, and replace it with a tilda? Javascript i've tried so far: $(document).ready(function(event){ var regExComma = /,/; $("[name='name[]']").live("keypress",function(event){ // i know i could check the numerical value, i feel this requirement can get more added to it and I would like to just change the regEx accordingly. if(regExComma.test(String

Redirect to a new tab using CFLocation - CF9

こ雲淡風輕ζ 提交于 2019-12-02 00:03:54
问题 Is there a way to redirect a user to a new window by using CFLocation? As far as I know you cannot use target=_blank in CFLocation. Is there another way to do it? This is my code: <cfif cgi.PATH_INFO eq "/procedure-page.cfm"> <cflocation url="http://www.example.com/example/example.cfm?id=XXXXXX&contactid=#returnStruct.contactID#&doctorid=#officeLocation#" addtoken="no" > <cfelse> <cflocation url="http://www.example.com/example/example.cfm?id=#example#&contactid=#returnStruct.contactID#