coldfusion

JFreeChart Dial chart in Coldfusion

…衆ロ難τιáo~ 提交于 2020-01-06 08:24:27
问题 Has anyone an example of implementing a JFreechart Dial chart on Coldfusion? Thanks 回答1: (This probably should not be a separate answer, but the other was already pretty long. So I am posting it separately to keep things organized and easy to find.) In case you are looking for what jFreeChart calls a MeterChart, here is a quick and dirty example of that chart type. MeterChart Code: <cfscript> // my chart settings chartTitle = "My Meter Chart"; arrowValue = 55; arrowUnits = "widgets";

How to rewrite this URL to a redirect page?

↘锁芯ラ 提交于 2020-01-06 08:24:12
问题 I am using Microsoft-IIS/7.5 on a hosted server (Hostek.com) I have an existing site with 2,820 indexed links in Google. You can see the results by searching Google with this: site:flyingpiston.com Most of the pages use a section, makerid, or bikeid to get the right information. Most of the links look like this: flyingpiston.com/?BikeID=1068 flyingpiston.com/?MakerID=1441 flyingpiston.com/?Section=Maker&MakerID=1441 flyingpiston.com/?Section=Bike&BikeID=1234 On the new site, I am doing URL

How do I match a string that does not contain X with ColdFusion regular expressions?

*爱你&永不变心* 提交于 2020-01-06 06:02:53
问题 I asked this question earlier, but it got a negative vote, so I'm rewording it. I have: <cfset myExpression = "X"> #REFind(myExpression,myString)# I need to change myExpression so that it returns a value other than zero if there is NOT an X in myString, and a 0 if there is an X in myString. 回答1: <cfset string = "abc" /> <cfoutput>#refind( "^[^X]+$" , string )#</cfoutput> // 1 <cfset string = "abcX" /> <cfoutput>#refind( "^[^X]+$" , string )#</cfoutput> // 0 回答2: please check the following

How can we pass the JSON data in http request body in form post

独自空忆成欢 提交于 2020-01-06 05:50:45
问题 We had a form which was submitting the data to a page in a new tab. Like, <form name='formOne' action='/action.cfm' method='post' target='_blank'> <input type='hidden' name='employee' value='{"first_name": "test","last_name":"name"}' /> <input type='hidden' name='contact' value='{"phone": "1233214090","fax":"1098760982"}' /> <input type="submit" /> </form> But now "action.cfm" page is expecting a JSON value in http request body. Like { "employee": { "first_name": "test", "last_name": "name" }

Can I call a stored procedure in a cfloop and output dynamic out-parameters in Coldfusion?

烈酒焚心 提交于 2020-01-06 05:41:08
问题 Last question for tonight, still using Coldfusion8 and MySQL. I have a table with products, each with Price A, B and C. I need to retrieve the min and max values for A,B,C across all prices (A_min, A_max, B_min, B_max, C_min, C_max) I thought I would create a stored procedure and loop through A,B,C like so: <cfloop list="A,B,C" index="what" delimiters=","> <cfstoredproc procedure="proc_search_select_minmax" datasource="dtb"> <cfprocparam type="in" value="#what#" cfsqltype="cf_sql_varchar"

Parameters Management for complete website!

北城余情 提交于 2020-01-06 05:08:28
问题 On my website's Start page I have a Search Mask where user set select different Search Criteria. When user doee't then the default values will be set for the search parameters. By clicking on Search buttom user comes on preview page, where the user has possibility to refine his search parameters agaian. And there can by many different types of preview pages. For examples if users searches in Cars category then the preview page be other and the search mask will other as the have searched in

coldfusion web service issue

不羁岁月 提交于 2020-01-06 04:55:06
问题 I have the following web service call: <cfinvoke webservice="#application.capsRemote#card.cfc?wsdl" method="purchase" returnVariable="retpurchase" refreshwsdl="true"> <cfinvokeargument name="iCustomer" value="#session.user.customerCode#"> <cfinvokeargument name="iAmountCents" value="#form.cc_amount*100#"> <cfinvokeargument name="sCard" value="#form.cc_number#"> <cfinvokeargument name="sExpiry" value="#form.cc_expiry#"> <cfinvokeargument name="sType" value="PAYMENT"> <cfinvokeargument name=

Staging my Coldfusion app when using CFC inheritance/extends

瘦欲@ 提交于 2020-01-06 04:51:32
问题 I have an application.cfc in a subdir of my webroot: /app/application.cfc I recently added another application.cfc in a subdir of that and it extends the original application.cfc using the proxy method described here http://corfield.org/blog/index.cfm/do/blog.entry/entry/Extending_Your_Root_Applicationcfc : /app/mysubdir/application.cfc /app/applicationproxy.cfc The extends attribute for the subdir cfc looks like this: <cfcomponent extends="app.applicationProxy"> This all works fine so far

Oracle SQL RETURN INTO Fails within CFQUERY (ORA-06550/PLS-00103)

隐身守侯 提交于 2020-01-06 04:14:09
问题 I'm trying to update a record at the same time I select it. In Oracle SQL Developer, the below query works. However, when I execute it from within a CFQUERY tag in ColdFusion, I get an error (see below). I found this stack overflow (ORA-06550 and PLS-00103) but wasn't any help. Ideally, I'd also like to return the whole record, not just the ID of the affected record. So, I have two questions. Why is the below record failing from within a ColdFusion CFC's CFQUERY? How to I rewrite the query to

Using cfimage to display a file that doesn't have an extension

随声附和 提交于 2020-01-06 01:44:29
问题 curious one this. I'm working on a process that generates PDF files, combining data from various sources. The last piece of this process I need to complete is merging in image files. This is actually fairly straightforward but the problem I have is the image files aren't stored with file extensions. Locally, I can change the filename, but in production this isn't an option. So because a filename looks like : B71637CB-A49C-0653-EF813918736BDEB7 This will not work: <cfimage action=