Questions tagged [cfloop]

CFLoop: ColdFusion Loop This is a conditional loop. A conditional loop iterates over a set of instructions as long as a condition is True. To use this type of loop correctly, the instructions must change the condition every time the loop iterates, until the condition is False. Conditional loops are known as WHILE loops, as in, "loop WHILE this condition is true."

<cfloop> is a ColdFusion tag that is used to iterate over data. It supports five different types of loops:

  1. Index Loops
  2. Condition Loops
  3. Looping over a Query
  4. Looping over a List
  5. Looping over a Structure

Read more about the different kinds of loops here

145 questions
0
votes
2 answers

How can I replicate this loop in cfscript (for use in cf10 / railo)

I have this working nicely in tag format, but am trying to migrate everything into cfscript. How can I do this one? (essentially, it loops over from date1 to date2, and needs to be in 15 minute intervals.
Neokoenig
  • 1,102
  • 7
  • 16
0
votes
3 answers

openbd cfloop over a date

I'm trying to convert my sites from CF8 to openBD. I have a cfloop in a site that loops over a date range. In essence, I want to insert a new record into the db for every 2 weeks (step) of a date range (from and to) my loop looks like this...…
Gene R
  • 1,555
  • 5
  • 19
  • 32
0
votes
1 answer

Coldfusion Order on alphabet

I'm looping over an iteration like this :
  • #item.getValue('title')
This returns me all the titles. But I have to organize these…
ErikMes
  • 482
  • 2
  • 14
0
votes
2 answers

CFloop Processing Extremely slow

I am teaching myself CF Development and am using a shared CF Hosted Site for testing as I learn. I have a spreadsheet containing 2500 plus records of data, in about 15 columns. The spreadsheet contains data critical to the basis of this application.…
Ken Mais
  • 31
  • 2
0
votes
1 answer

Dynamic conditional cfloop

Maybe I'm just having a bit of Monday morning brainfreeze here but I have the following code... SELECT * FROM Logins
CPB07
  • 679
  • 3
  • 13
  • 23
0
votes
1 answer

How do I loop through checked results on a coldfusion page and pass checked records to another page

How can I loop through results on a coldfusion page and grab the ids of the records that are checked and send just a list of ids to another page to be queried? The ids of the records are in the field next to the checkbox. Here is an example: check …
mac3201
  • 85
  • 1
  • 1
  • 10
0
votes
2 answers

table showing more than once, How to change?

I have this code that shows a table:
NamePositive CommentNegative Comment
#emp_namefirst#…
user3591637
  • 499
  • 5
  • 20
0
votes
2 answers

How to put results of multiple querys properly in one table

Kaarten overzicht

Patiente Naam Arts Huisarts Diagnose