coldfusion

Accessing variables of a dynamic form

江枫思渺然 提交于 2019-12-29 09:32:06
问题 I am creating a form with cfloop and need to access each variable individually when submitting the form. I need to use the selected entries of the form in a loop that will add my selections to a database. This is my form: <form method="post"> <input type="hidden" name="isPost" value="1"> ... <cfoutput> <cfloop query="client_admin_surveys"> <input type="text" size="35" name="surveyID" id="surveyID" value="#id#"> <input type="text" size="35" name="surveyName" id="surveyName" value="#name#">

Stop CSS styles to be applied in particular sections of the code

徘徊边缘 提交于 2019-12-29 01:42:26
问题 This question may sound a bit weird/novice/stupid. Please bear with me. The below code is a small portion of a webpage I have created using CSS, HTML and coldfusion. <head> ---------------------Part 1-------------------------------------- <CFIF CompareNoCase('#aid#', 0)> <cfinclude template="show.cfm"> <cfabort> </CFIF> ----------------------------------------------------------------- <link rel="stylesheet" href="styles/style.css?1322665623"> </head> ---------------------------PART 2---------

How do I convert images between CMYK and RGB in ColdFusion (Java)?

旧城冷巷雨未停 提交于 2019-12-28 13:36:10
问题 I have a need to convert images from CMYK to RGB - not necessarily back again, but hey, if it can be done... With the release of ColdFusion 8, we got the CFImage tag, but it doesn't support this conversion; and nor does Image.cfc, or Alagad's Image Component. However, it should be possible in Java; which we can leverage through CF. For example, here's how you might create a Java thread to sleep a process: <cfset jthread = createObject("java", "java.lang.Thread")/> <cfset jthread.sleep(5000)/>

Select IN on more than 2100 values

孤者浪人 提交于 2019-12-28 07:06:07
问题 How can you do a select in on more than 2100 values? <cfquery name="result.qryData"> SELECT sub_acct_no, ... FROM dbo.Closed_ORDER WHERE ord_no IN <cfqueryparam cfsqltype="CF_SQL_varchar" value="#ValueList(qryOrd.ord_no)#" list="yes"> </cfquery> Because of the ways that the tables are setup, linked Servers and JOINS are not an option. When this is ran an error this thrown because there are new many fields being passed in. 回答1: First load the values into XML <cfset var strResult = '<ul class=

SQL query multiple tables, with multiple joins and column field with comma separated list

梦想与她 提交于 2019-12-28 06:56:05
问题 I have a query where I join three separate tables (node, control, service). Below is their column headings and sample data. NODE TABLE (contains over 7000 rows) nodeID | host | serviceID | controlID 1 | server1 | 1,2,3,4,9,50,200 | 1 2 | server2 | 2,3,4,9,200 | 2 3 | server3 | 1,2,3,4,9,50,200 | 2 4 | server4 | 1,2,50,200 | 3 5 | server5 | 1,4 | 3 CONTROL TABLE (contains roughly 50 rows) controlID | name 1 | Control Name One 2 | Control Name Two 3 | Control Name Three 4 | Control Name Four 5

How to pass “Null” (a real surname!) to a SOAP web service in ActionScript 3

风流意气都作罢 提交于 2019-12-28 04:37:05
问题 We have an employee whose surname is Null. Our employee lookup application is killed when that last name is used as the search term (which happens to be quite often now). The error received (thanks Fiddler!) is: <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>coldfusion.xml.rpc.CFCInvocationException: [coldfusion.runtime.MissingArgumentException : The SEARCHSTRING parameter to the getFacultyNames function is required but was not passed in.]</faultstring> Cute,

Getting Unable to read WSDL error

倾然丶 夕夏残阳落幕 提交于 2019-12-28 03:12:28
问题 This is first time I'm using SOAP.I'm trying to invoke a webservice using cfinvoke which is as follows: <cfinvoke webservice="https://xyz/infoLookup.php?wsdl" method="infoLookup" returnVariable="info" > <cfinvokeargument name="phoneNumber" value="7182973186"/> <cfinvokeargument name="userName" value="12345"/> <cfinvokeargument name="password" value="password"/> </cfinvoke> <cfdump var="#info#"> And here is a part of the message name from the WSDL : <message name="infoLookupRequest"> <part

CFFlush doesn't seem to work in Chrome and IE

醉酒当歌 提交于 2019-12-25 21:00:31
问题 I have a script that needs to submit to an iframe and get a return value. However, the coldfusion page i am submitting to needs to do additional processing that has nothing to do with the return value, so I want to return the value to the iframe and then redirect the iframe to about:blank before doing the rest of the processing so that the user doesn't have to wait. I thought cfflush would be the ideal solution here, but it only seems to work in Firefox. IE and Chrome both wait till the

Does HTMLStripCharFilterFactory @ Solr 3.4 strip out html for returned fields?

我怕爱的太早我们不能终老 提交于 2019-12-25 16:27:52
问题 I'm using CF10 which should be using Solr 3.4 according to corporatezen.com/2013/11/updating-solr-engine-coldfusion. I added <charFilter class="solr.HTMLStripCharFilterFactory"/> to <fieldType name="text"> but the summary field in the search result still includes HTML. Any idea why? <field name="summary" type="text" indexed="false" stored="true" required="false" /> http://localhost:8985/solr/test/admin/schema.jsp shows: Field: summary Field Type: TEXT Properties: Tokenized, Stored Schema:

Textarea losing styles in email coldfusion

醉酒当歌 提交于 2019-12-25 11:55:18
问题 I have a textarea where I have the body of the email with style like below. But the email does not retain any of the below styles in outlook. I have <cfmail type="html" . Any ideas on how to retain the styles I have below. The extra html tags have closing tags in another footer file that I am including on the email. <textarea name="email_body"> <table class="one-column" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-spacing:0" bgcolor="#FFFFFF"> <tr><td align="left"