I think you want "getChildren". Either that - or you need to manipulate the levels and depth in getDescendants.
Gary Menzel > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Aidan Whitehall > Sent: Tuesday, 9 March 2004 10:19 PM > To: FarCry Developers > Subject: [farcry-dev] Categories and getDescendants > > > I'm trying to create a calendar that has a drop-down for all > categories > that are children of the "Events" category. These are the > categories as > they've been set up in FarCry: > > root > - Events > - - Training Courses > - - Branch Meetings > - - Council Meetings > - - AGM > - - Exhibition > - News > - Publications > - - The Blue Book > - - The Bulletin > > > oTree.getDescendants() below is returning a query object with three > records -- "Training Courses", "Branch Meetings" and "News", > whereas I'd > expected it to return all the child nodes beneath "Events" and not > include "News", which is a sibling, not a child. > > <cfset oCategory = createObject("component", > "#application.packagepath#.farcry.category")> > <cfset oTree = > createObject("component","#application.packagepath#.farcry.tree")> > <cfdump > var="#oTree.getDescendants(objectid=oCategory.getHierarchyRoot > ("Events") > )#"> > > > Any ideas where I'm falling down? Thanks! > > -- > Aidan Whitehall <mailto:[EMAIL PROTECTED]> > Macromedia ColdFusion Developer > Fairbanks Environmental Ltd +44 (0)1695 51775 > Queen's Awards Winner 2003 <http://www.fairbanks.co.uk/go/awards> > > Fairbanks uses anti-spam filtering. If you sent an e-mail and expected > to receive a response but didn't, please call -- it may be that your > e-mail didn't make it to the intended mailbox. > > ______________________________________________________________ > __________ > This e-mail has been scanned for all viruses by Star Internet. The > service is powered by MessageLabs. For more information on a proactive > anti-virus service working around the clock, around the globe, visit: > http://www.star.net.uk > ______________________________________________________________ > __________ > > --- > You are currently subscribed to farcry-dev as: > [EMAIL PROTECTED] > To unsubscribe send a blank email to > [EMAIL PROTECTED] > > MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia > http://www.mxdu.com/ + 24-25 February, 2004 > --- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
