coldfusion

ColdFusion - how to loop through XML output and adding to struct or array?

时光怂恿深爱的人放手 提交于 2019-12-20 04:28:08
问题 I am trying to create a list of Chapter Officers and their respective positions. The data comes from a series of XML key/value pairs accessed via web service (Key: Member_Name, Value: Joe Member. Key: Position_Name, Value: President, and so forth.) Each officer for a given chapter has their own Member_Name and Position_Name. The API I am working with will only return an entire object, so I set up an array to convert the XML name and hold everything: <cfset keyValue = xmlSearch(soapBody,"//*

How do I send data from my JQGrid to my query to delete a row?

落花浮王杯 提交于 2019-12-20 04:25:34
问题 I am unable to delete a row from my JQGrid because I can't figure out how to send the data I need to the file that holds the MySQL. I am using ColdFusion. In my JQGrid file, my editurl parameter is set as such: editurl: url+"process_delete.cfc?method=process_delete&region="+region, In my process_delete.cfc file, that holds my MySQL queries, I have this: DELETE FROM awesome_table WHERE region = '#region#' AND Field1 = '??????' AND Field2 = '???????' I know that the MySQL is being reached - no

What does LE mean in the test-expression part of a for loop

这一生的挚爱 提交于 2019-12-20 04:16:26
问题 Hi I'm very novice to coldfusion and I am trying to debug some cfscript logic. Basically I want to know what "le" means in the test-expression part of the for loop. I have looked through the coldfusion docs but can't find what it means. I am guessing it means less than or equals, but I believe that is denoted as LTE. Here's a sample of the code: for (i = 1; i le length; i = i + 1) Thanks in advance. 回答1: It is an alternate way of saying LTE. These are equivalent: LESS THAN OR EQUAL TO LTE LE

How to add event to iCal / Outlook / gmail from webpage?

喜夏-厌秋 提交于 2019-12-20 04:11:52
问题 include a link to download an .ics / .iCal file? attach .ics file through email? How to construct the file? Where to find the spec? What're the benefits of rendering the data in hCalendar on the page? So search engine can index it somehow? Thanks 回答1: There seems to be plenty of hits for the first part of your question on Google. Also try CFLIB.org search and you can see how the function creates the text string http://www.google.co.uk/search?q=iCal+and+ColdFusion To download, write out the

Handling 500 JRun servlet in ColdFusion

拜拜、爱过 提交于 2019-12-20 03:37:14
问题 All - Is there a way to handle a 500 JRun servlet error in ColdFusion? I tried using cferror as well as using the site-wide handler in ColdFusion admin, but it does not seem to be working. Here is the error message 500 ROOT CAUSE: java.lang.IllegalArgumentException at coldfusion.filter.FormScope.parseName(FormScope.java:408) at coldfusion.filter.FormScope.parseQueryString(FormScope.java:360) at coldfusion.filter.FormScope.parsePostData(FormScope.java:328) at coldfusion.filter.FormScope

ColdFusion how to set form input values from the results of a cfquery?

会有一股神秘感。 提交于 2019-12-20 03:23:39
问题 Question: (part 1) I am looking for the most efficient way to set my form input values based on the results of my cfquery . My form fields all match the column names in the database. I know using cfinsert I can update the database with form input values. Is there a way to do that in reverse? (part 1.5) How do I set the values of select and radio buttons based on the value of my cfquery? Background: I have a form with 60+ inputs with a mixture of text , select , radio and textarea . The page I

Calling a variable with a variable in its name - coldfusion?

烂漫一生 提交于 2019-12-20 03:10:35
问题 Attempting to use squarebracket notation to reference a dynamic variable. (I'm looping through a set of product created by a query, creating fields for each tied to their unique SKU, if you're wondering about application) I've narrowed it down to this chunk of code, which throws an "Invalid Expression" error when I try and run it. <cfif FORM["QTY_" & SKU] NEQ ''> <div class="sopQty"><input type="number" min="0" name="QTY_#SKU#" value = "#FORM['QTY_' & SKU]#" /></div> <cfelse> <div class=

Wrap URL within a string with a href tags using Coldfusion

做~自己de王妃 提交于 2019-12-20 03:05:41
问题 I have a Coldfusion site that is pulling in a feed that contains urls. I have some control over the urls so I know they will always start with http://. I want to wrap those urls in a href tags so they are clickable but I'm having trouble figuring it out. Any info you guys could give me would be amazing. Eric 回答1: This should work: <cfset myStr = REReplaceNoCase(myStr, "(\bhttp://[a-z0-9\.\-_:~@##%&/?+=]+)", "<a href=""\1"">\1</a>", "all") /> 回答2: Far more better approach: http://www.bennadel

SQL IN Statement - Value In (database_field)

主宰稳场 提交于 2019-12-20 02:58:42
问题 Part of a search query i'm building requires filter values to be processed through an SQL query to check against a CSV list within a database field. (I have no control over the use/non use of CSV lists within database fields, working with what i have) and I have done a little testing and found that you can do the following: Where database_field In (#CSV_list#) If database_field equalled 2 and CSV_list equalled 1,2,3,4 this would return true as the value of 2 was found within the CSV list.

What are all the values that ColdFusion considers “falsy” and “truthy”?

梦想与她 提交于 2019-12-20 02:58:23
问题 I'm looking to compile a complete list of values that ColdFusion considers falsy and truthy. The ones I know of are: //falsy values false "false" 0 "no" //truthy values true "true" != 0 "yes" Is there anything that I'm missing here? 回答1: There's a neat little article on that here http://www.coldfusionmuse.com/index.cfm/2010/2/5/Booleans.and.Coldfusion but of course officially it's http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec09af4-7fd0.html In Boolean