To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/7DNykNPLigcJ.
--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.
Agreed!
Took me a while to figure out how to do a proper QoQ in cfsript...lol
The thing I like with wheels is that I can write less and do more!
A+
Simon
To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/OVmyBoXA8UkJ.
Beyond hideous!
To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/OVmyBoXA8UkJ.
Queryname = new Query(name="queryname", datasource="get('datasourcename')", cachedwithin="createtimespan(0,0,5,0)", sql="select * from yourtable where foo='#params.bar#'").execute().getResult();
This treats it like an object, so you could actually do a call in a view or something for:
#queryname.recordcount#
You could also loop over your query right after calling it:
For(x=1; x <= queryname.recordcount; x=x+1){
...some logic here...
//say we want to right some output:
Writeoutput('this is '&x);
}
-James