coldfusion

ColdFusion: SQL Select IN from a Query

烂漫一生 提交于 2020-01-04 02:06:09
问题 I have a SQL Server query which returns two values for one MyBusinessUnit column returns two values, say: 1111 2222 in a query object called MyQuery1 Both of these values also exist in a DB2 database's MyCorpUnit column. What I want is to select all the matching records from the DB2 table--and, no, cross database queries are NOT working. So, here's my Query2 for DB2 database: <cfquery name="Query2" datasource="#application.DSN#"> SELECT MyCorpUnit WHERE MyCorpUnit IN ( <cfqueryparam value="

Coldfusion, The symbol you provided [method_name] is not a function

社会主义新天地 提交于 2020-01-03 16:57:00
问题 Running CF 9,0,1,274733 I have a custom DAO CFC with a method called getGamesBetTypesID(). The method is generated/synthesized implicitly by CF from the following property: <cfproperty name="gamesBetTypesID" type="numeric" /> A default variable is defined as follows: <cfset VARIABLES.gamesBetTypesID = 0 /> Other than that there are no other VARIABLES, vars, LOCALs, ARGUMENTS or methods called getGamesBetTypesID. All CFC and function variables are correctly scoped. This save() method is called

View Raw HTML of CFHTTP call

早过忘川 提交于 2020-01-03 16:52:41
问题 Is there a way to output the raw html of a CFHTTP call? I am trying to see how some of the header authentication information is coming across. I am open to browser plugins or code updates whichever helps me see what is going on during the cfhttp call. So for example: <cfhttp method="get" url="https://test-ows01.mywebsite.com/criminal_api//1.0/service/requests" result="orderList"> <cfhttpparam type="HEADER" name="Authorization" value="Basic #ToBase64("bearer:4EC8B09D3F911764B1DCD3EFA38DFB31")#

How to encode HTML form in coldfusion?

爷,独闯天下 提交于 2020-01-03 15:33:56
问题 I'm new to coldfusion. I have page called test1.cfm <form action = "test2.cfm" method = "post"> Type your name and hit submit:<br> <input type = "Text" name = "txt1"> <input type = "Submit" name = "" value = "submit"> </form> And test2.cfm <cfoutput> success #form.txt1# <a href="test1.cfm">back</a> </cfoutput> Now I want to know if we can encode the displaying of text value in test2.cfm page. For eg. if we type <br> in the textbox, test2 page will render it as html, and I want to stop rending

Why does directoryExists test true but cfdirectory fails?

我只是一个虾纸丫 提交于 2020-01-03 13:08:24
问题 I have a page that accesses in-memory files. We have 10 - 20k files stored in hundreds of directories (up to 2000). All directories and files are created programmatically. There are no permissions set or changed. All files use the default CF account, which we have had no issues with. Every once in a while, we get an error. We test for the existence of a directory. If it exists, we get the contents of the directory and do something with the files. We are successfully able to read directories

ColdFusion 8 always opens .XLS, want .XLSX

不想你离开。 提交于 2020-01-03 13:08:22
问题 I am using ColdFusion 8. Doing something like this: <cfheader name="content-disposition" value="attachment; filename=abc.xlsx"> <cfcontent type="application/msexcel"> <html> But I get a file like abc.xlsx.XLS . The reason I'm trying to get an XLSX is because sometimes the XLS version is so large and Office 2007 gets stuck opening it or takes way to long. Only workaround right now is to wait, open the XLS in Office 2007, save as .XLSX and then open it faster. Any help is appreciated! 回答1: I

CFdump cfcomponent cfscript

两盒软妹~` 提交于 2020-01-03 12:48:11
问题 Can one use cfdump inside a cfcomponent? Can one use cfdump inside a cfscript? I know the anser is no then how can one emit the values of the functions insde cfcomponent cfscript? I am using CF8 回答1: Can one use cfdump inside a cfcomponent? Yes, with some caveats. If you use a CFDUMP followed by CFABORT, the dump will be displayed whether or not the component/method has output turned off. That does, of course, abort all processing. Can one use cfdump inside a cfscript? Not exactly (unless you

CFdump cfcomponent cfscript

房东的猫 提交于 2020-01-03 12:47:11
问题 Can one use cfdump inside a cfcomponent? Can one use cfdump inside a cfscript? I know the anser is no then how can one emit the values of the functions insde cfcomponent cfscript? I am using CF8 回答1: Can one use cfdump inside a cfcomponent? Yes, with some caveats. If you use a CFDUMP followed by CFABORT, the dump will be displayed whether or not the component/method has output turned off. That does, of course, abort all processing. Can one use cfdump inside a cfscript? Not exactly (unless you

Unlock and Reset Active Directory Password Coldfusion

风格不统一 提交于 2020-01-03 12:31:54
问题 I have created a drop down using CFLDAP. The drop down is the users name for which I will allow a password unlock and reset to occur. <div id="DESDD" class="form-group" style="display:none;"> <select name="DES" id="DES" class="form-control"> <option value="" selected>Please select user</option> <cfoutput query="CreateDESDropdown"> <option value="#samaccountname#">#cn#</option> </cfoutput> </select> </div> <div id="pass" class="form-group" style="display:none;"> <input type="password" name=

Difference between AUTH_USER and REMOTE_USER cgi variables

倖福魔咒の 提交于 2020-01-03 11:32:51
问题 The docs aren't entirely clear on this - is there a difference between these variables? On IIS at least they appear to be identical, but I don't want to rely on that if it might be different under other servers. 回答1: According to the Adobe ColdFusion documentation they are the same. http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Expressions_8.html Looking at the openbd source code, the remote_user and the auth_user are mapped to the same key, so it returns the same value.