coldfusion-8

Actual XML file location while dealing with CFchart

蹲街弑〆低调 提交于 2019-12-02 13:11:30
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: line 271 Called from C:\PATH\Testing_Connections.cfm: line 1 294 : <cfchartseries query="detail4" type=

Displaying data from multiple queries in a single pie chart using cfchart tag

本小妞迷上赌 提交于 2019-12-02 11:43:10
Please consider the following code, right now I have the following code in my .cfm page inside the <body> tag: DataSource = xx.xx.x.xx Name of the database = sgemail Name of the relevant column = event_vc Basically I have calculated the percentage of the open connections in the following queries. <cfquery datasource = "xx.xx.x.xx" name="qSen"> SELECT (select count(*) FROM sgemail) AS TOTAL_CONNECTIONS, (SELECT count(*) FROM sgemail WHERE event_vc = "open") AS OPEN_CONNECTIONS, (ROUND((SELECT OPEN_CONNECTIONS / (TOTAL_CONNECTIONS))*100)) AS "% OPEN" ; </cfquery> <cfquery datasource = "xx.xx.x

error “1064” in trigger creation in mysql?

强颜欢笑 提交于 2019-12-02 08:27:29
while creating trigger in mysql i m getting error 1046. my query is: CREATE TABLE test.Employee( id int, first_name VARCHAR(30), last_name VARCHAR(15), start_date DATE, end_date DATE, city VARCHAR(10), description VARCHAR(15) ); CREATE TABLE test.Employee_log( id int, first_name varchar(50), last_name varchar(50), start_date date, end_date date, city varchar(50), description varchar(50), Lasinserted Time ); when i am executing below lines it is giving error: Error Code : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right

Add a “Target Line” to a Coldfusion 8 CFChart Bar Graph

為{幸葍}努か 提交于 2019-12-02 07:32:29
问题 I have a Coldfusion CfChart Bar Graph, that has X-Axis = Questions, and Y-Axis = Scores (0-100), but what I want to do is add a a Target Score Line on the graph, that goes across the X-Axis at the Y-Axis 85 Mark. Is this possible at all? I noticed something similar for Javascript on here: How to create a line to show threshold in bar graph I was just wondering if it was possible to do something similar in Coldfusion. 回答1: Yes, you can generate background ranges by using a custom style. See

ColdFusion - Creating column names dynamically with CFLOOP

落爺英雄遲暮 提交于 2019-12-02 06:17:44
问题 I have a table that records the name of uploaded documents, up to 14 per record. The columns are named thus: TABLE tblDocuments COLUMNS documentID (int, not null, pk) document1 (varchar(250), null) document2 (varchar(250), null) /* and this continues through */ document14 (varchar(250), null) So I query for any documents for a particular record: <cfquery name="qryGetDocs" datasource="#dsn#"> SELECT document1, ...document14 FROM tblDocuments WHERE documentID = <cfqueryparam name="SESSION

Post parameters from AJAX request undefined in form scope in ColdFusion

孤街醉人 提交于 2019-12-02 05:06:32
问题 I am working on a ColdFusion 8 training application where I'm making some AJAX requests (without any libraries such as jQuery) to support a very basic CRUD application. The high level architecture includes a CFM view, a CFC with remote access methods which receive the AJAX requests, and a CFC which acts as a model and has all of the database queries. For just retrieving data that doesn't require any sort of bind variables (like getting all rows from the table), the AJAX queries are working

Add a “Target Line” to a Coldfusion 8 CFChart Bar Graph

戏子无情 提交于 2019-12-02 05:05:12
I have a Coldfusion CfChart Bar Graph, that has X-Axis = Questions, and Y-Axis = Scores (0-100), but what I want to do is add a a Target Score Line on the graph, that goes across the X-Axis at the Y-Axis 85 Mark. Is this possible at all? I noticed something similar for Javascript on here: How to create a line to show threshold in bar graph I was just wondering if it was possible to do something similar in Coldfusion. Yes, you can generate background ranges by using a custom style. See CFCHART-Tip--Background-Ranges ie Using the <limits> element <frameChart is3d="false"> <yAxis> <limits index=

Coldfusion 8 doing both CFIf and the CFElse statement

孤街浪徒 提交于 2019-12-02 03:27:38
问题 I am making a user signup app for an ecomerce site, but I have run into a very odd problem. When I run this code: <cfif isValid("email", form.email)> <cfquery name="check_user" datasource="#request.dsn#"> SELECT var_username, var_password FROM tbl_users WHERE var_username = <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#FORM.EMAIL#"> AND var_password = <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#FORM.PASSWORD#"> </cfquery> <cfif check_user.recordcount LT 1> <cfquery datasource="

How to remove more than one whitespace character from HTML?

谁说我不能喝 提交于 2019-12-02 03:11:21
问题 I want to remove extra whitespace which is coming from the user end, but I can't predict the format of the HTML. For example: <p> It's interesting that you would try cfsetting, since nothing in it's documentation would indicate that it would do what you are asking. Unless of course you were mis-reading what "enableCFoutputOnly" is supposed to do. </p> <p> It's interesting that you would try cfsetting, since nothing in it's documentation would indicate that it would do what you are asking.

Coldfusion 8 doing both CFIf and the CFElse statement

一曲冷凌霜 提交于 2019-12-02 01:51:43
I am making a user signup app for an ecomerce site, but I have run into a very odd problem. When I run this code: <cfif isValid("email", form.email)> <cfquery name="check_user" datasource="#request.dsn#"> SELECT var_username, var_password FROM tbl_users WHERE var_username = <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#FORM.EMAIL#"> AND var_password = <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#FORM.PASSWORD#"> </cfquery> <cfif check_user.recordcount LT 1> <cfquery datasource="#request.dsn#" name="insertuser"> INSERT INTO tbl_users (var_username, var_password) VALUES (<cfqueryparam