the very idea of "get descendants" would indicate that it will return all
nodes one level down from the node passed.  If you want the current node,
pass it a node a level up from the current.  there is a function that will
get you that information.  Something like...

application.factory.oTree.getParent(request.navid)

This returns a query object so you'll need to reference the object id by
appending .parentid[1] to the end.

On 4/29/07, schlub <[EMAIL PROTECTED]> wrote:
>
>
>
> The same thing happens when using the getDescendants function too...
> it doesn't include itself in the list even with bIncludeSelf
>
> I'm not convinced "depth" works either... as it seems to return 2
> levels of information regardless of the setting... depth="1" should
> only show 1 level of information i.e. the children of the selected
> node, not the children of the children as well
>
> On Apr 30, 9:56 am, schlub <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I am trying to get some secondary navigation going using the
> > genericNav component... it works fine if I want to have nested
> > information, but I am only interested in items at the current level.
> >
> > I am using the "getSiblings" function but the "bIncludeSelf" flag
> > doesnt seem to work (setting it to either "1" or "true"). So if I have
> > nodes (1, 2, 3, 4) and I select node 3 I will only have (1, 2, 4) in
> > the nav list.
> >
> > I can call it using something as simple as:
> > <pwSkin:genericNav functionMethod="getSiblings"
> > navID="#request.navid#" depth="1" bIncludeSelf="true">
> >
> > Or something more complicated:
> > <pwSkin:genericNav
> >         functionMethod="getSiblings"
> >         functionArgs="jointable=""dmNavigation"",
> > status=""#request.mode.lvalidstatus#"""
> >         class="item"
> >         depth="1"
> >         startlevel="3"
> >         bIncludeSelf="true"
> >         bActive="true"
> >         bIncludeHome="false"
> >         bHideEmptyNodes="true">
> >
> > I don't really want to have to add it manually as its position in the
> > list will change each time (if you manually add to start or end of the
> > list)
> >
> > Any ideas?
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to