cfloop Questions
5
Solved
I would like to handle a row from a query by a function, where I pass the row as a structure.
ideally...
<cfloop query="myquery">
#myfunction(#row#)#
</cfloop>
I could set it up li...
Bluff asked 17/6, 2011 at 17:28
2
Solved
Hi I have a loop which outputs
<cfloop collection="#SESSION.squad.achievements#" item="key">
The problem is the key(which is a year) is output in the wrong order, it outputs
2009
2010
2...
Ironwork asked 3/5, 2011 at 9:39
1
Solved
I am trying to loop over a 2-D array whose dimensions are 12000 * 20 and I am continuously getting java.lang.OutOfMemoryError.
Initially I thought this might be because of heap size so I increase...
Webfooted asked 24/3, 2015 at 9:49
1
Solved
I'm very curious why this is happening. I've run into it twice now, and after a ton of googling/so'ing, I haven't found any reason I actually understand. The gist of it:
Query 1: selectContent (6 ...
Regimentals asked 8/9, 2014 at 8:17
4
Solved
I have a shopping cart array, which has a variable to tell me if the product is an accessory or not, this will be either yes or no. I need to loop through the cart and find out the following:
If ...
Sedimentary asked 12/2, 2012 at 21:7
4
Solved
I develop using ColdFusion and wanted to know what is the best strategy to loop over large query result set. Is there any performance difference between using cfloop and cfoutput? If not, is there ...
Junkojunkyard asked 8/10, 2012 at 13:36
3
Solved
Page 116 of the developer's guide says
"Unlike the cfloop tag, CFScript for-in loops do not provide built-in support for looping over queries and lists."
Q: How do I loop over a list using the ne...
Terret asked 7/1, 2010 at 14:3
3
Solved
Thanks for replying!! But I am still not able to do it. Error that I am getting is
"Element objGet1 is undefined in a Java object of type class coldfusion.runtime.VariableScope."
Below is my full ...
Lett asked 14/7, 2010 at 16:51
1
I have 2 tables. One is for categories, the second is for Questions.
category table:
category_id
category_name
questions table:
question_name
question_id
category_id
How can I loop t...
Gereld asked 3/6, 2010 at 23:45
1
Solved
I'm inside a cfloop over a query. I want to get an attribute, but I won't know what that attribute will be until runtime. Using #qryResult[MyAttr]# fails with the error "Complex object types cannot...
Bourque asked 5/4, 2010 at 21:48
3
Solved
Is there a better way to write the following?
<cfloop list="#qry.Columnlist#" index="FieldName">
<cfset "form.#FieldName#" = Evaluate("qry.#FieldName#")>
</cfloop>
This loop i...
Jotun asked 6/1, 2010 at 19:2
1
© 2022 - 2024 — McMap. All rights reserved.