Thanks everyone, that's exactly what I needed. By the way, if it's useful to anyone, I'm SpaceCap() and capFirstTitle() from the CFLIB to turn my camelCase column aliases into nice titles.
Example: <cfinvoke component="#record#" method="get#fieldname[i].alias#" returnVariable="fieldValue"> #capFirstTitle(spaceCap(fieldValue))#: Turns "fieldname" into "Field Name:" Now, I'll have to check if there is any major performance issue doing it that way, but it sure is convenient. :-) Thanks again! Dan -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sean Corfield Sent: Wednesday, August 02, 2006 5:51 PM To: [email protected] Subject: Re: [Reactor for CF] How do I dynamically call get(fieldname) methods? On 8/2/06, Dan Sorensen <[EMAIL PROTECTED]> wrote: > HERE'S > WHERE I'M STUCK: #record["get" & fieldname[i].name & "()"]# <cfinvoke component="#record#" method="get#fieldname[i].name" returnvariable="tmp"/> #tmp# -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [email protected] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [email protected] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
