coldfusion

Submit form information with multiple checkboxes/select menus

拟墨画扇 提交于 2019-12-11 11:56:56
问题 I wanted to know if it was possible to have the form on this fiddle come out onto the database like this after the user hits submit once. +------+------+----------+ | Name | Meal | Quantity | +------+------+----------+ | Adam | Beef | 2 | | Adam | Pork | 1 | | Adam | Lamb | 3 | +------+------+----------+ http://jsfiddle.net/f8zyakvj/1/ I know that through multi selects, all the information you select is sent through as an array, but for checkboxes, how can I make it so that the information is

Coldfusion neo-cron.xml has been modified - when it hasn't been

醉酒当歌 提交于 2019-12-11 11:56:34
问题 We've just upgraded from CF 9 to 9.0.1 (ColdFusion 9 Update 1). We're running on Windows Server 2008. After the upgrade we noticed on our server that we were getting a lot of these messages in server.log : "Information","scheduler-6","10/05/10","12:34:48",,"neo-cron.xml has been modified . Reloading the service coldfusion.scheduling.CronServiceImpl@c020a" "Information","scheduler-5","10/05/10","14:54:50",,"neo-cron.xml has been modified . Reloading the service coldfusion.scheduling

Get readable WSDL service method arguments error in ColdFusion

做~自己de王妃 提交于 2019-12-11 11:54:19
问题 I'm developing a service invoking script that looks like: <cfinvoke webservice="#ServiceURL#" method="AddCustomer" returnvariable="ResponseData" argumentcollection="#stAguments#"> <cfinvokeargument name="api_key" value="#ServiceKey#" /> </cfinvoke> stAguments structure filled before this call, obviously. Imagine you've forgot to add one of arguments into this container or used wrong argument type, say created invalid request. ColdFusion throws exception that can be catched, but can not (not

Coldfusion error handling

老子叫甜甜 提交于 2019-12-11 11:46:54
问题 I am trying to create some custom error pages that email our developers that there has been an 404 or 500 error in coldfusion. Also it would be helpful if within the email it gives the error variables. I have set up a error page in coldfusion and have pointed IIS(7) at it. Also in my application.cfm file I am declaring the following: <cferror type="exception" template="#name#"> <cferror type="request" template="#name#"> <cferror type="validation" template="#name#"> <cferror type="monitor"

Upload File in Object

别等时光非礼了梦想. 提交于 2019-12-11 11:46:37
问题 What am I doing wrong? fileUpload.cfm <cfcomponent name="fileAttachment" hint="This is the File Attachment Object"> <cffunction name="uploadFile" access="public" output="no" returntype="string"> <cfargument name="fileToUpload" type="string" required="no"> <cfargument name="pDsn" required="no" type="string"> <cfset var cffile = ""> <cffile action="upload" destination="D:\apache\htdocs\abc\uploads" filefield="#ARGUMENTS.fileToUpload#" nameconflict="makeunique"> <cfreturn cffile.clientFile /> <

refactor cferror tag to application.cfc's onError()

﹥>﹥吖頭↗ 提交于 2019-12-11 11:44:21
问题 How to translate <cferror type="EXCEPTION" template="ErrorTemplate.cfm"> to an onError() function for Application.cfc? Notice that cferror create a var error struct for the template. Is there a quick and easy way to create the same error struct? How to pass that into ErrorTemplate.cfm using <cfinclude> ? I know onRequest() shares the variable scope with the target page, but does onError share variables scope too? If not, what shall I do? Stick it to the Form scope? Thank you 回答1: According to

ColdFusion Equivalent to PHP Unpack and SHA1

自作多情 提交于 2019-12-11 11:35:59
问题 Here is my problem. In PHP there are two functions that I am having a hard time replicating in ColdFusion. 1) PHP's unpack function which let's you format the output in a given way. One of the format options is 'H' which stands for "Hex string, high nibble first" - How could I replicate this in ColdFusion? This is what I have so far... <cfscript> function stringToBinary( String stringValue ){ var base64Value = toBase64( stringValue ); var binaryValue = toBinary( base64Value ); return(

Cfbuilder 3 search for a file with specific text inside a folder

眉间皱痕 提交于 2019-12-11 11:34:53
问题 In Cfbuilder 2 we used to have a search functionality using which we can search for all the files containing a specific keyword or text inside them in any selected folder (not only the project folders or workspace in CfBuilder). In CfBuilder 3, I cannot find that functionality. It seems that we can only search inside the projects open in the builder. Is there any way to get the functionality back in CfBuilder 3. 回答1: It's still in exactly the same place it was before. Select the directory in

CFSpreadSheet - format column not formatting the entire column

别等时光非礼了梦想. 提交于 2019-12-11 11:28:41
问题 Using CF10 Standard to create a spreadsheet from a query. No matter what I've tried so far, the formatting for a specific column stops at row 32 (1 header row, 31 data), even though the entire sheet is populated to 186 rows. <cfscript> dfStyle=StructNew(); dfStyle.fgcolor="pale_blue"; dfStyle.dataformat="mm/dd/yyyy"; theSheet = SpreadSheetNew('mysheet'); SpreadSheetAddRow(theSheet,'SID,FIRST,LAST,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,EMAIL,ADDED,PID'); SpreadSheetAddRows(theSheet,qry);

Sorting an implicit array of implicit structs by struct key

最后都变了- 提交于 2019-12-11 11:16:28
问题 Based on the first example in this blog post, I have an implicit array of implicit structs. My data is actually pretty similar, e.g.: <cfset ReportsArray = [ { Name = "My First Report", Group = "Group One" }, { Name = "My Second Report", Group = "Group Two" }, { Name = "My Third Report" Group = "Group One" }, ...etc... ]> I decided to create the data in this format so that I can later push a new report to the array in any group, or just rewrite the array with a new list of reports if needed.