coldfusion - EntityLoad dates in future -


i have table events. i'm trying display list of events in future. i'm using orm can't figure out life of me how select dates in future. filters accept "=" , not ">". have doesn't work:

var events = entityload("tbl_events",{"eventactive" = 1, "eventdate" > now()},"eventdate asc",{maxresults = count}); 

you have use hql

http://help.adobe.com/en_us/coldfusion/9.0/developing/wsf0ed2a6d7fb07688310730d81223d0356fc-7ffe.html

var events = ormexecutequery(from tbl_events eventactive = 1 , eventdate > ?, [now()]); 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -