In cfscript I am trying to loop over a query inside of a savecontent block (basically generating an HTML table inside of a cfc method for output).
In the tag based version of cfsavecontent this works easily with either a cfoutput query or a cfloop query, however for the life of me I cannot get anything but the last query row to output inside the savecontent block? I've tried various versions of nested cfoutput's and writeoutput's etc. but cannot seem to come up with the right combination to make this work (or perhaps it's impossible with cfscript?)
--
Did you find this reply useful? Help the Railo community and add it to the Railo Server wiki at https://github.com/getrailo/railo/wiki
---
You received this message because you are subscribed to the Google Groups "Railo" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/cdc6c47f-dcee-4405-a9b4-a97182d8453f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Igal Sapir Railo Core Developer http://getRailo.org/
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/fb564cdc-c318-4aab-a036-c7c9525f09d1%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/7c093e08-f12f-4500-b6b6-a1979573f57d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/4d7eac55-81ce-4b13-b2fc-48e19c98ae5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks Igal. So is there a way in cfscript to achieve this tag based solution:
short answer: it's a method in a script-based cfc that renders data in various formats based on certain logic. Of course, this specific situation could be pulled out to a view cfm page, but this turned into an exercise in "why does this work so simply in tags, but such a PITA in script?" etc.
I suppose I'll chalk this up to another situation like cfquery that just works better as a tag...