coldfusion

Ext JS Dependent combo box

女生的网名这么多〃 提交于 2019-12-11 20:44:36
问题 I am new to extJS, and trying to implement the following functionality: I have two select drop down menus, transformed using extJS. How can I make sure that if a value in one combo box is selected, the other value should be set back to some default value? Thanks. Edited: Code till now: Ext.onReady(function(){ var converted = new Ext.form.ComboBox({ typeAhead: true, triggerAction: 'all', transform:'id_Select1', width:600, forceSelection:true, emptyText:'Select' }); var convertedCdr = new Ext

Getting Queries of Queries error

丶灬走出姿态 提交于 2019-12-11 20:37:39
问题 I am using the following code and wondering why I am getting "Queries of Queries" error? <cfquery name="findpercentage" datasource="#mydatasource#"> SELECT Count(TableId_bi) AS Total_Events ,Sum(CASE WHEN 'OPEN' = Event_vch THEN 100 END) / Count(*) AS OPENS ,Sum(CASE WHEN 'BOUNCE' = Event_vch THEN 100 END) / Count(*) AS BOUNCE ,Sum(CASE WHEN 'DEFERRED' = Event_vch THEN 100 END) / Count(*) AS DEFERRED ,Sum(CASE WHEN 'DROPPED' = Event_vch THEN 100 END) / Count(*) AS DROPPED ,Sum(CASE WHEN

CFHTTP Cookie Issue

百般思念 提交于 2019-12-11 20:28:38
问题 I'm having (what I believe to be) a cookie problem with cfhttp under Railo-Express-4.1.1.009. My code performs a two step http call. The first step performs authorization with the remote application. If successful, the remote server returns an authorization cookie, which is extracted and passed to the second call like so: <cfhttp url="http://remoteserver/targetPath" port="xxxx" method="get" result="Local.response" throwonerror="true" redirect="false"> <cfhttpparam name="Action" value="Ping"

CFDUMP different for CFQUERY vs CFSTOREDPROC

别说谁变了你拦得住时间么 提交于 2019-12-11 20:22:01
问题 Problem: I have a sproc which I am calling in 2 ways (cfquery and cfstoredproc) and then dumping the resultsets. I am passing in the same argument in both cases and the sproc returns a trivial hard-coded result for this test. When i dump the results, I can see the actual query SQL in the cfquery call but not in the cfstoredproc call.Why? I would like to use the cfstoredproc version but want the ability to get the SQL attribute of the dump like in CFQUERY. (Yes, I know there is something

Can someone tell me if Colfusion 8 can consume a WCF service?

↘锁芯ラ 提交于 2019-12-11 19:38:35
问题 I cant find any good samples for that scenario. Also, the WCF service used the Entity Framework 6.0 which should return big JSON structures. For now I am just trying to find a simple example which can call a simple WCF service: [ServiceContract] public interface ITest { [OperationContract(Name = "Test_GetDate")] [WebGet(UriTemplate = "/GetDate", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] string GetDate(); ... public class Test : ITest { public string

how can i get an array of recently inserted records ids?

放肆的年华 提交于 2019-12-11 19:38:32
问题 I have one table named "questions". This table may have multiple questions. Here I am looping over the insert query to insert all question values for having duplicate questions. It is successfully adding questions, but the issue is I can't get the list or array of recently inserted question records ids. Here is the code. <cfloop query="questions"> <cfquery name="insertDuplicatequestions"> INSERT INTO questions ( survey_Id, questiontype_Id, question, rank, isrequired ) VALUES ( <cfqueryparam

coldfusion scheduled task not sending emails

谁都会走 提交于 2019-12-11 19:28:10
问题 When we run a scheduled task through CFAdmin, code inside the task that is meant to send an email does not send that email. But, if we run the task url in a browser on its own, the email is sent. Anybody come across a similar issue? 回答1: It's difficult to say too much without seeing any actual code, but I can make some blind suggestions over and above the other responses which are all good. what happens if you run the task via CFSCHEDULE? what happens if yuo create a new task that ONLY does

ColdFusion FTP Explicit TLS

无人久伴 提交于 2019-12-11 19:18:51
问题 Is it possible to do a ColdFusion FTP connection using Explicit TLS? I have searched on Google but to no avail. 回答1: The Apache Commons has an FTPSClient class as well, and I think it is already available in the later versions of Coldfusion. Just adding an example. It uses a test server that I found available. I am using CF 9.0.2, and did not have to download any additional jars. ftpsClient = CreateObject("java","org.apache.commons.net.ftp.FTPSClient").init(JavaCast("boolean",true));

ColdFusion 10 does not work for Amazon Elastic Beanstalk

大憨熊 提交于 2019-12-11 18:57:48
问题 I'm trying to deploy ColdFusion 10 to the AWS ElasticBeanstalk service but the stock configuration is failing. I'm trying to create a x64 Tomcat 6 environment. Do you know what changes need to be made to allow ColdFusion 10 to be deployed via Amazone Elastic Beanstalk while permitting the stock config such as SES links? Thanks! Exception SEVERE: Parse error in application web.xml file at jndi:/localhost/WEB-INF/web.xml org.xml.sax.SAXParseException; systemId: jndi:/localhost/WEB-INF/web.xml;

Exchange EWS Coldfusion - need to convert WebDav to EWS

瘦欲@ 提交于 2019-12-11 18:20:12
问题 I've managed to connect to my exchange server via EWS and send an email. I need an example of how to create a calendar item. Coldfusion 9 Exchange 2007 <cfobject type="Java" class="microsoft.exchange.webservices.data.ExchangeService" name="service"> <cfobject type="Java" class="microsoft.exchange.webservices.data.ExchangeVersion" name="version"> <cfset service.init(version.Exchange2007_SP1)> <cfobject type="Java" class="microsoft.exchange.webservices.data.WebCredentials" name="credentials">