If this is what you are trying to do I would try something like this to set the fieldname to use
<cfset fieldname = DATEPART("YYYY", timestamp)>
<cfset reportQuery.getWhere().isEqual("ARCommunity",fieldname, "#attributes.reportYear#") />
Keep on reactor-ing.....
Doug S.
On 6/9/06, Ray Buechler <
[EMAIL PROTECTED]> wrote:
Daryl,
That won't work because reactor is looking for that as the database fieldname. ColdFusion thinks it is an undefined variable. I've come to the conclusion that I am trying to do something that is not possible to do. I was trying to use it as I would the SQL function rather than a CF function.
Thanks for the help though!
RayOn 6/9/06, Daryl <[EMAIL PROTECTED]> wrote:Add pound signs? e.g.,
<cfset reportQuery.getWhere().isEqual("ARCommunity",
"#DATEPART("YYYY", timestamp)#", "#attributes.reportYear#") />
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
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/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

