So I'm reading this guide and it's really helpful!
http://www.iknowkungfoo.com/blog/index.cfm/2007/8/22/Object-Oriented-Coldfusion--1--Intro-to-Objectcfc
In my reading, I came upon an example similar to this:
cfset qUsers = object.getallusers()
cfoutput query=qUsers
...
/cfoutput
Would
As long as IsQuery(object.getallusers()) returns true. :-)
On Mon, Feb 9, 2009 at 7:05 PM, Mike Soultanian msoul...@csulb.edu wrote:
So I'm reading this guide and it's really helpful!
http://www.iknowkungfoo.com/blog/index.cfm/2007/8/22/Object-Oriented-Coldfusion--1--Intro-to-Objectcfc
In my reading, I came upon an example similar to this:
cfset qUsers = object.getallusers()
cfoutput query=qUsers
...
/cfoutput
Would it be possible to do this instead:
cfoutput query=object.getallusers()
...
/cfoutput
Yes, I'm pretty sure it would work. That said, it might not
/cfoutput
cfif remainingCells
cfloop from=1 to=#remainingCells# index=i
tdnbsp;/td
/cfloop
/tr
/cfif
/table
/cfif
Pascal
-Original Message-
From: Greg Luce [mailto:[EMAIL PROTECTED]
Sent: donderdag 1 april 2004 18:36
To: CF-Talk
Subject: RE: CFOUTPUT Question
Bruce,
I just
This worked well. Thanks.
_
From: Greg Luce [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 10:36 AM
To: CF-Talk
Subject: RE: CFOUTPUT Question
Bruce,
I just ran this against a local table and it renders 2 nice
columns. The y helps you see what currentrow MOD 2 is doing.
cfquery
Your close, you don't want to close the new row inside your If statement.And you will need a closing tag at the end.
tr
cfoutput query=qSubCat1 group=Style
td
img src="" border=0
/td
cfifCurrentRow Mod 2 IS 1
/tr
tr
/cfif
/cfoutput
/tr
You can also simplify your if statement if
td
img src="" border=0
/td
td
img src="" border=0
/td
td
img src="" border=0
/td
td
img src="" border=0
/td
/tr
tr
/tr
/td
/tr
/table
_
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 20
Can you provide the complete CFML code.I think you may need to reverse your if statement to cfif NOT currentRow MOD 4.It looks like you are trying to output 4 columns?
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
I've got something very similar to that, with three columns, but otherwise similar logic:
cfset total_items = GetPerFeatures.Recordcount
cfset columns = 3
cfset col_tick = 0
cfset count = 0
table border=0 cellpadding=0 cellspacing=0 width=90% align=center
tr
cfoutput
cfloop
-Original Message-
From: Bruce Sorge [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004 10:00 PM
To: CF-Talk
Subject: CFOUTPUT Question
I have this piece of code:
tr
cfoutput query=qSubCat1 group=Style
td
img src="">
border=0
/td
cfifCurrentRow Mod 2 IS
I have this piece of code:
tr
cfoutput query=qSubCat1 group=Style
td
img src="" border=0
/td
cfifCurrentRow Mod 2 IS 1
/tr
tr
/tr
/cfif
/cfoutput
What I was hoping to achieve was, when the second image appeared (the second
column), then a new row would appear. So I guess
ng selfish, but the last time I checked,
we don't have a whole lot of songs that feature the cowbell!
-Original Message-
From: Bruce Sorge [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004 9:00 PM
To: CF-Talk
Subject: CFOUTPUT Question
I have this piece of code:
the cfoutput query=myQuery...cfoutputmakes one iteration for each
row in the query
I think you want something like:
tr
td.../td
td.../td
/tr
within the output tags
HTH
Dick
On Mar 31, 2004, at 7:00 PM, Bruce Sorge wrote:
I have this piece of code:
tr
cfoutput query=qSubCat1
Anyone know a way to use a dynamic variable inside of a CFOUTPUT?
cfoutput query="#queryname#" maxrows=1
tr
td width="40%"
font face="Verdana, Arial, Helvetica, sans-serif"bfont
size="3" color="red"#ucase(name)#/font/b /font/td
try using the same variable to name the query as you are for naming the output. I have
done this before where my query name was "lu#table#" and my cfoutput was named the
same ie: name="lu#table#".
HTH
-- Original Message --
From: "William Wheatley"
e -
From: "Clint Tredway" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Sunday, April 08, 2001 12:14 AM
Subject: Re: CFOUTPUT question
try using the same variable to name the query as you are for naming the
output. I have done this before where my query nam
-
From: "William Wheatley" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Sunday, April 08, 2001 12:33 AM
Subject: Re: CFOUTPUT question
even with
cfoutput query="qget#name#" maxrows=1
tr
td width="40%"
Hi Bill,
even with
cfoutput query="qget#name#" maxrows=1
tr
td width="40%"
font face="Verdana, Arial, Helvetica,
sans-serif"bfont size="3" color="red"#ucase(name)#/font/b
/font/td
td width="60%"nbsp;/td
/tr
HI,
Got a site with a bunch of forms to send stuff to the client once a use
fills them out. When submitted, the forms take you to a processing/confirm
page that thanks you, shows you exactly what you just sent and sends the
mail.
Currently, in order to get this to work. I'm doing:
PAGE
Im doing a CFOUTPUT from a database and the data just repeats
down one long
column in the table...
Is there any way to repeat the data into a two column table?
Chad,
What you need to do is something like this
cfset EndColOne = round(myquery.recordcount/2)
cfset StartColTwo =
Im doing a CFOUTPUT from a database and the data just repeats down one long
column in the table...
Is there any way to repeat the data into a two column table?
--
Archives: http://www.eGroups.com/list/cf-talk
To
I looked at my question and there was a typo.
I dont want to repeat my data... i want to 'word wrap it' to another column..
I have been reading, and researching.. what about using
MAXROWS="10". Then do another CFOUTPUT to the second column with
STARTROW="11"
Is this going to confuse
, to the end.
-Original Message-
From: Chad [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 19, 2000 4:36 AM
To: [EMAIL PROTECTED]
Subject: Re: CFOUTPUT question
I looked at my question and there was a typo.
I dont want to repeat my data... i want to 'word wrap it' to
another column
23 matches
Mail list logo