function years( event, rc, prc ) {
// This is the format we want!
var test = [
{name="Tricia", lastname="Smith", nickname="Trish"},
{name="Jack", lastname="Doe", nickname="JJ"}
];
//prc.response.setData(test); // this works!
event.renderData( type="json", data=test ); // this never works.
}
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/ec2d8f86-271f-4f6e-bb29-8e51b8467ae6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ST api return back a data download file?
Jeff,
You’ll need to send custom headers for that download anyway. Easiest do in a one-off handler method that delivers the spreadsheet and add a conditional in the current action to deliver the file if the flag is passed. There’s a `downloadFile` method in this “QueryToCSV” helper, should get you started (though it performs an immediate flush/abort ):
https://gist.github.com/jclausen/8429aba7672185421e743554657b34dd
Jon
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit
https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/65c93aac-c763-4904-ad61-4140b1888840%40googlegroups.com.