One more thing: you can set the ftSelectMultiple attribute on a dropdown list to turn it into a multi-select (at least I think that's that attribute).
Also you can change it from a dropdown to a bank of checkboxes by setting ftRenderType="checkbox" on the property. Should probably put that in the docs :) Blair On Dec 22, 2007 9:47 AM, tilespace <[EMAIL PROTECTED]> wrote: > > @Blair: I'll take a look... Thank you! > > @geoff: ooOoOoo... I'll take a crack at making my own FT component... > And there's no reason why I wasn't using an array... To be honest, I > didn't realize that was a choice :D I hoped that if I posted the two > pieces of code I'm used to using and then asked questions, I'd get > some insite as to which way to go... And received that I did! > > Thank you both! > > > > On Dec 18, 3:30pm, modius <[EMAIL PROTECTED]> wrote: > > On Dec 19, 6:22 am, tilespace <[EMAIL PROTECTED]> wrote: > > > > > Anyways, I have a custom type "destinations" and a custom type "tour > > > companies" (wow, sounds alot like the example in the dev handbook so > > > far). Destinations is a simple name, description type. No issues > > > whatsoever. Tour companies is all of the company's relevant info > > > (name, addr, website, phone, etc) and that's no problem. But I want to > > > be able to have a list of destinations available as checkboxes when > > > adding/editing tour companies. I can build out the front-end no > > > problem where it groups by destinations and links to the tour > > > companies detail page so I'm not concerned about that. > > > > Data Types (type): > > A UUID is for a single object reference. > > An array is for multiple object references. > > A list of UUIDs could be stored in a string/longchar field. > > > > Formtool types (fttype): > > An array is for a library picker to select multiple elements -- works > > with array only. > > A UUID is for a single object selection -- works with uuid only. > > A list is a select menu -- you could select one or a multi select for > > multiple -- works with string/longchar. > > > > Is there any reason you are not using an array (array data type) and > > simply allowing users to select destinations from a library picker > > (array fttype)? If you need a custom ui element -- like a bank of > > checkboxes -- then you'd probably want to build your own formtool > > component such as ./formtools/checkboxen.cfc and have an array or > > string/ntext to store the UUIDs you collect. > > > > -- geoffhttp://www.daemon.com.au/ > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
