coldfusion

Am I utilizing <cfthread> correctly for this solution?

岁酱吖の 提交于 2019-12-12 04:09:57
问题 I am trying to do multiple image uploads via the <cffileupload> tag. The tag calls a file called fileupload.cfm to process / finalize the image. Inside that image I want to start off a thread (here is where I might not understand threading, so let me know) so that I can reply 'image uploaded' back to the flash upload app, but initiate a thumbnail generation process (which might last 1 min or so, depending on the file size). So far I added something like: <!--- BUILD A THREAD TO CREATE /

Not able to initialize org.apache.poi.xslf.usermodel.XMLSlideShow in coldfusion

大憨熊 提交于 2019-12-12 04:08:01
问题 <cfscript> filepath = ExpandPath("./1.ppt"); fis = CreateObject( "java", "java.io.FileInputStream" ).init(filepath); //initialize slideshow object with input stream src = createObject("java","org.apache.poi.xslf.usermodel.XMLSlideShow").init(fis); fis.close(); </cfscript> I am not able to initialize org.apache.poi.xslf.usermodel.XMLSlideShow object in coldfusion. Getting following error: Unable to find a constructor for class org.apache.poi.xslf.usermodel.XMLSlideShow that accepts parameters

Trying to replace all evaluate functions with dynamic notation in ColdFusion 9

≡放荡痞女 提交于 2019-12-12 04:01:52
问题 Hello I have been tasked with replacing all evaluate() functions in this coldfusion app. I am having some issues with some fairly complex evaluations and I just can't figure it ou. When it is a simple change like This: <cfif isNumeric(evaluate("form.value_#REPORT_FIELD_ID#"))> To This: <cfif isNumeric(form["value_" & REPORT_FIELD_ID])> It's all good but for this: <cfif evaluate("qrySearch.#qryReportFields.FIELD_NAME[qryReportFields.currentRow]#") eq true> Not so much I have tried several

ColdFusion SQL update with form

给你一囗甜甜゛ 提交于 2019-12-12 03:02:05
问题 <cfelseif ARGUMENTS.myForm.Submit EQ "Update_what"> <cfquery name="LOCAL.myURL" datasource="#SERVER.cfc.core.getDSN()#"> SELECT What_name FROM logboek.tbl_What WHERE What_name = <cfqueryparam cfsqltype="cf_sql_varchar" value="#ARGUMENTS.myForm.What_name#" /> </cfquery> <cfif LOCAL.myURL.RecordCount eq 0> <cfreturn VARIABLES.Error.myReturn /> <cfelse> <cfquery name="LOCAL.myURL" datasource="#SERVER.cfc.core.getDSN()#"> UPDATE logboek.tbl_What SET What_name=<cfqueryparam cfsqltype="cf_sql

Disable Excel Error Checking through Coldfusion

前提是你 提交于 2019-12-12 02:59:33
问题 I enforced the number having leading zero to the text . It is working well but it is showing green icon on the corner on clicking it displays the error . My question is that how i can stop or disable this button not to show on the excel sheet programmatically. In excel sheet you can easily disable error checking but i want this through code Any Help will be appreciated Thanks! 回答1: Short answer: The ability to suppress Excel's error checking on a cell level is supported in POI 3.14+. See

Coldfusion form values to php setcookie()

时间秒杀一切 提交于 2019-12-12 02:57:54
问题 I have a Coldfusion page with posted form values that I'm passing to a php page (via cfhttp). Example of the Coldfusion code: <cfhttp method="Post" url="https://www.test.com/ssl/get_cookies.php" result="cookieResponse"> <cfoutput> <cfif isdefined( "ppcid" )><cfhttpparam name="PPCID" type="formField" value="#session.ppcid#"></cfif> <cfif isdefined( "cid" )><cfhttpparam name="CID" type="formField" value="#session.cid#"></cfif> <cfif isdefined( "leadcomm" )><cfhttpparam name="LEADCOMM" type=

Jquery Dynamic Radio button show hide

◇◆丶佛笑我妖孽 提交于 2019-12-12 02:35:47
问题 Essentially what is going on is that I'm using a database to create radio buttons and text fields. Depending on which radio button is selected a different text field is shown. That's the easy part. The hard part is that all the names, classes, etc. are dynamic. I've managed to get the script to work correctly with one exception. It needs to cycle through and if something is selected leave it open. Right now it is set up to close everything once you select a different radio button. It only

2 Submit buttons in 1 form

烂漫一生 提交于 2019-12-12 02:32:31
问题 I have 2 submit buttons in my form. <input type="submit" value="Save as Draft"> <input type="submit" value="Save"> Basically, what I want to do is when the user clicks on Save as Draft , it will proceed to bring all the form details to _update.cfm (without validating) and when the user clicks on Save , it will proceed to _validate.cfm and then to _update.cfm (validating and updating the database.) HTML: <cfset tx_name = ""> <cfif isDefined("form.tx_name")> <cfset tx_name = form.tx_name> <

Should encodeForHtml() & encodeForURL() be used from CF10 onward, in favor of htmlEditFormat() & urlFormat()?

左心房为你撑大大i 提交于 2019-12-12 02:24:09
问题 In an earlier question encodeForHtml() vs htmlEditFormat(), how are they different, it seems like the new encodeForHtml() & encodeForURL() functions are superior to htmlEditFormat() & urlFormat() respectively. Should the esapi-based encodeForXXX functions be used in favor of the existing ones? Should the 2 older functions be deprecated? Thank you. 回答1: I have no idea if the two older functions would be deprecated. But I would say that using the new functions would be a good idea, unless you

Query with grouped results by column (SQL Server)

隐身守侯 提交于 2019-12-12 02:19:59
问题 I've got a many to many relationship between items - itemnames - languages The itemnames don't appear for every language. I'd like to get a result with all the items only represented once, but be able to set the languageId to default to. For example items 1,2,3 are defined in two languages, and item 4 and 5 have one language each, but the languages are different [itemid][languageid][name] 1, 1, item1 1, 2, leItem1 2, 1, item2 2, 2, leItem2 3, 1, item3 3, 2, leItem3 4, 1, item4 5, 2, leItem5 I