coldfusion

Convert Coldfusion script in Oracle view with CASE and iteration

混江龙づ霸主 提交于 2019-12-11 04:49:23
问题 I created a coldfusion script allowing to get an object "unit" from an array. My DB has a view about units. For a same unit key "ORG_ID", it can exist several rows (with a difference on a field "origin"). the field "origin" can be "current", "history" or "different". +---------+---------+------------+------------+----------| | ORG_ID | TITLE | VALID_FROM | VALID_TO | ORIGIN | +---------+---------+------------+------------+----------| | 1234 | A.1 | 01/03/2016 | 31/12/9999 | other | | 1234 | A

Asp.net processing of .CFM files or Redirects from .cfm to .aspx page?

*爱你&永不变心* 提交于 2019-12-11 04:44:28
问题 I have a legacy .cfm (ColdFusion) page which used to process form data (from remote servers) and send users emails based on form data. Now I no longer use ColdFusion and instead hosting is at the 'free' ASP.NET (3.5). I am not sure how much control I have over that. But I was thinking if I can have a global.asax file where all requests (actually, form posts) going to the .cfm page get redirected to an aspx page where I can do the needed processing. How can this be done within a shared hosting

Proper Syntax for 3 table SELECT query

与世无争的帅哥 提交于 2019-12-11 04:39:02
问题 I've got 3 tables: tblPosts tblComments tblUsers I'm trying to get a listing of Posts along with associated Comments. The tricky part seems to be getting the Posts and Comments to show the proper author (User). This is the closest I get but then the Posts authors are incorrect. I'm grouping my CFOutput on "pid", so I only get each post one time as I would expect. SELECT tblPosts.pid , tblPosts.title , tblPosts.description , tblPosts.price , tblPosts.datecreated AS pdate , tblPosts.image1 ,

Regex to extract temperatures and temperature ranges from a string

落爺英雄遲暮 提交于 2019-12-11 04:18:35
问题 Okay I have this string: -64.5(Ethylene glycol monobutyl ether acetate)- -24.4 deg C(N-Methylpyrrolidone) And the final result I am looking for is this: -64.5 - -24.4 deg C The inclusion of dashes in the chemical name and the negative numbers as well as the dash separator to indicate a temperature range is killing me!! Any help would be greatly appreciated!! Example inputs: > 1000 °C ( > 1832 °F ) > -64,6 deg C (Ethylene glycol monobutyl ether acetate) -30 to -15 deg C ( -22 to 5 deg F ) -64

<cfcatch> not 'catching' an error

你说的曾经没有我的故事 提交于 2019-12-11 04:16:29
问题 I've got an image processing CFC to handle uploaded images. In the method, I'm creating an new image of the uploaded file with ImageNew() and then resizing it if needed (along with some other validation to make sure it's an image). Here's a snippet of the code: <cftry> <cfset ImageScaleToFit(#local.uploadedImage#, 72, "", "highestPerformance")> <cfimage action="write" source="#local.uploadedImage#" destination="#local.newThumbName#" overwrite="yes" > <cfcatch type="any"> <cfset local.response

How to form a cfhttp call to consume a custom webservice API

此生再无相见时 提交于 2019-12-11 04:07:52
问题 I've been a cf developer for 11 years, but embarrassed to say that I've done nothing substantial with webservices. How to I form a cfhttp call to consume the following webservice API provided by the vendor? Soap 1.2 Request: POST /Portal/internet.asmx HTTP/1.1 Host: 192.168.222.240 Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org

Ajax jQuery call to ColdFusion component

倾然丶 夕夏残阳落幕 提交于 2019-12-11 04:05:47
问题 I'm new to jQuery and am trying to create a login page that will do an Ajax call to a CFC that simply returns true or false on whether login was successfull. My call is making it to the CFC with my arguments correctly, but what's getting returned is the problem. If I set my datatype in jQuery to be "html", I see what looks like a copy of my entire page in html along with the "true" value I'm looking for. But if I try setting it to "json" nothing happens. I'm on ColdFusion 9, jQuery 1.6.2. My

Can a cfargument be of type “list”?

非 Y 不嫁゛ 提交于 2019-12-11 04:01:54
问题 I want to have an argument like this: <cfargument name="exclude" type="list" required="false" default="-1" hint="A list of source IDs that should be excluded" > I don't see it in the docs at http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_a-b_6.html by I don't really trust them. Does anyone know if this is possible or will I have to convert to an array? At the moment I get an error: The EXCLUDE argument passed to the renderSelectSource function is not of type list. It's

ORA-00942: table or view does not exist (ColdFusion application)

若如初见. 提交于 2019-12-11 03:59:22
问题 I have a ColdFusion 10 application with an Oracle 11g backend. The Production version works fine. Recently, I had the Oracle DBAs refresh the Test database from Production. Now, I receive the ORA-00942: table or view does not exist error. All the tables are there when I use SQL Plus and the queries run fine. I am at a loss as to what to check now. The trace sends me to the query that is running fine in SQL Plus. What have I missed? Update - 17 October 2014 I don't know if it makes any

How to get the name of the component that's extending mine in ColdFusion?

感情迁移 提交于 2019-12-11 03:53:32
问题 Let's say I have the following component called Base : <cfcomponent output="false"> <cffunction name="init" access="public" returntype="Any" output="false"> <cfset variables.metadata = getmetadata(this)> <cfreturn this> </cffunction> <cffunction name="getmeta" access="public" returntype="Any" output="false"> <cfreturn variables.metadata> </cffunction> </cfcomponent> and I want to extend base in another component called Admin : <cfcomponent output="false" extends="Base"> </cfcomponent> Now