coldfusion

Query of Queries failing in Coldfusion 10

僤鯓⒐⒋嵵緔 提交于 2019-12-11 08:21:36
问题 I'm getting and error when I tried to do a query of query. Table named allData was not found in memory. The name is misspelled or the table is not defined. I have an excel document and I'm outputting to a coldfusion var called allData, then I'm doing a query on that var. but I'm getting an error: What am I doing wrong? The first dump shows the table appropriately. function name="validateExcel" access="public" output="yes" returnType="void" hint="search for dogs"> <cfspreadsheet action="read"

CFQUERYPARAM not working in ColdFusion 10

倖福魔咒の 提交于 2019-12-11 07:58:49
问题 I am passing three integers into a function in a CFC, like this: <cfscript> Q = TOPBIKES.GetTopBikes(127, 10, 11); writeDump(Q); </cfscript> The CFC uses these integers to run a query like this: <!--- GET TOP BIKES ---> <cffunction name="GetTopBikes"> <cfargument name="FeatureID" required="true"> <cfargument name="MinWins" required="true"> <cfargument name="RecordsToReturn" required="true"> <cfscript> LOCAL.FeatureID = ARGUMENTS.FeatureID; LOCAL.MinWins = ARGUMENTS.MinWins; LOCAL

How to clear text field value on history.back()

瘦欲@ 提交于 2019-12-11 07:56:00
问题 I have a ColdFusion condition like this: <cfif txtTaxFileNo neq ""> <script> alert("NPWP Already Exist"); history.back(); </script> <cfabort> </cfif> Assume txtTaxFileNo has a value of "123" in the previous page. How can I empty the txtTaxFileNo field? I already tried this: <cfif txtTaxFileNo neq ""> <script> alert("#JSStringFormat('NPWP Already Exist')#"); history.back(); txtTaxFileNo.value = ""; </script> <cfabort> </cfif> However, the textfield on the previous page is not empty. It still

After jquery post I can't read form values with coldfusion

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 07:49:05
问题 I have a jquery post: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript" src="./js/jquery-1.4.3.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#JqPostForm").submit(function(){ $.post("messages.cfm", $("#JqPostForm").serialize()); return false; }); }); </script> </head> <body> <form id="JqPostForm"> <p>

Complicated Javascript Calculation

荒凉一梦 提交于 2019-12-11 07:46:00
问题 I've got a fairly large table that needs to have a total on the right side and bottom for daily totals. I've been able to get the side to total correctly, but not the bottom. I may be thinking too little of this, but currently I have this: (Yes, I know it's not correct and doesn't work. I was testing) script: HorizVertiCalc = function(h, v){ $('.R'+r).sum("keyup", ".vttl"+v); $('.C'+v).sum("keyup", ".vtotal"+r+v); } markup: <cfloop from="1" to="#ArrayLen(labels)#" index="r"> <tr> <td class=

SQL query inner join tables, print to HTML <select> tag

旧巷老猫 提交于 2019-12-11 07:45:34
问题 I have been tasked with updating an old application and ran into a head scratch-er. The application runs on Railo(ColdFusion) with a MySQL 5 database. The application is using Roles based authentication to manage users. The previous developer appeared to have no code to modify/add/delete users and just modified the database columns directly. I have taken care of the add/delete user part, no problem. The modify part is where I stumble. Below is the basic table layout for Roles and Members.

how many datasources can coldfusion handle

十年热恋 提交于 2019-12-11 07:42:37
问题 We have a coldfusion enterprise server with 2 instances. Each instance has 200+ data-sources to databases on one MSSQL server. This number will keep on growing. Now it seems that requests to a single data-source are getting slower even though the database is small. It is possible that requests get slower when CF has more data-sources? 回答1: Are the datasources partitioned for a reason (e.g. different clients/customers, etc)? If this is really just a big application with a bunch of databases,

How to replace comma in .xlsx file in ColdFusion?

好久不见. 提交于 2019-12-11 07:39:25
问题 I have excel file that can contain commas in some fields. This can cause problem if I want to use cfspreadsheet to convert my file to csv . I was wondering if there is the way to replace or convert all commas with the \ . After I replace all commas then I will be able to use cfspreadsheet to create csv . Here is my code how I read my file: <cfspreadsheet action = "read" format="csv" src="filePath\myFile.xlsx" name="csvvar"> If anyone can help with this problem please let me know. Thank you.

Can you have multiple cfapplications in an application.cfm?

早过忘川 提交于 2019-12-11 07:38:53
问题 I have a coldfusion site with an application.cfm. It has a cfapplication defined in it: <cfapplication name="FhaApp" clientmanagement="no" sessionmanagement="yes" sessiontimeout="#createTimeSpan(0,0,360,0)#"> <cflock timeout="120" name="#session.sessionID#" type="exclusive"> <cfcookie name="CFID" value="#session.CFID#" > <cfcookie name="CFTOKEN" value="#session.cftoken#" > </cflock> <cfparam name="session.fromwhere" default=""> <cfif #cgi.SCRIPT_NAME# contains 'default-partner-'> <cfif not

ColdFusion call to webservice gives org.xml.sax.SAXException

不打扰是莪最后的温柔 提交于 2019-12-11 07:33:47
问题 We are a small team with one ASP.NET web developer and one ColdFusion developer. Neither of us knows the other's environment. I wrote an ASMX webservice using Visual Studio 2005 and a web application project in Visual Studio 2008 that successfully consumes the web service. But now we are trying to have my ColdFusion colleague consume the webservice and we are getting results we cannot interpret (except to surmise that the target webservice is not even being reached but that some "system layer