I was getting the initial error as the function should be:
application.factory.oTree.getParentID(request.navid).parentID[1]

(it was simply missing the "ID" part of the getParentID method)

It does return the parent ID correctly, and I can use it to
getDescendants for the parent, but its definately not the function
that i'm looking for

On Apr 30, 11:58 am, schlub <[EMAIL PROTECTED]> wrote:
> That returns an error:
>   "The method 'getParent' could not be found in component C:\farcry-
> milestone_3-0-1\farcry_core\packages\farcry\tree.cfc."
>
> I have seen a getParent method used like the following:
>
> <cfscript>
>         o = createObject("component",
> "#application.packagepath#.types.dmNavigation");
>         qParent = o.getParent(objectid=request.navid);
> </cfscript>
>
> Then you can use #qParent.objectid# but as it only returns an objectid
> it isn't suitable for the getDescendants functions:
>   "The argument OBJECTID passed to function getDescendants() is not of
> type UUID."
>
> You can't use #qParent.parentid[1]#
>
> I am more interested in getSiblings anyway, but I don't understand why
> it isn't including itself in the results... has anyone had success
> with this function?


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