Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello :-) i see "Set Parent" and "Get Root" but is there a fast way to get the Parent-Node of a Node? Thanks a lot!! :-) |
||||
|
Fastest way would be to specify node name to it's parent dependency table through code: var nodeNameToParent = {In case it is required to update you can create wrapper for the existing function. function setParentAndUpdateNameToParentTable(node, newParentNode) {If you actually want to get parent through the code, you can only do it using tree search. function getNodeParent(nodeToFind) {You can also refer to this topic: https://www.ambiera.com/forum.php?t=11094&page=1 |
||||
|
Thanks a lot!! Haha seems like a lot of work for a simple task :-D The Idea with the "Look-Up-Table" is great!! |
||||
|
|