If you get a chance feel free to update: http://docs.farcrycms.org/display/FCDEV40/list
I note there is already a reference to the need for value/name as query columns. Perhaps some sample code would make things easier to understand. Also the sample code does indicate that you should use data type of string rather than a UUID. But again it could benefit from a better explanation. -- geoff http://www.daemon.com.au/ On Jan 3, 7:48 am, tilespace <[EMAIL PROTECTED]> wrote: > Alright... It's figured out... If anyone else should ever come across > this problem, use this code: > > <cfproperty ftSeq="14" > ftFieldSet="Details" > name="destinations" > type="longchar" > required="false" > hint="Destinations" > ftLabel="Destinations" > ftType="list" > ftRenderType="checkbox" > ftLayout="Yes" > ftListData="getDesties" /> > > <cffunction name="getDesties" displayname="gets all destinations"> > <cfset var qDests = queryNew("value,name") /> > <cfquery datasource="#application.dsn#" name="qDests"> > SELECT objectid as value,name FROM destinations > </cfquery> > <cfreturn qDests /> > </cffunction> > > After much debugging (lots and lots of cfsavecontent tags in > list.cfc), it turns out that it's hardcoded to look for a column > called "value" and so I had to change my SQL to "objectid as > value" (even though I read in a couple of places that the core knows > that objectid is value). > > So, there you go. Dynamic checkboxes. Yay. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
