The MindFusion Forums | |
Flow Diagramming Components >> ASP.NET >> How to get Origin Id
https://mindfusion.eu/Forum/YaBB.pl?num=1324963331 Message started by honghuhuang on Dec 27th, 2011 at 5:22am |
Title: How to get Origin Id Post by honghuhuang on Dec 27th, 2011 at 5:22am
I have a problem and I did not know how to solve it. Who can help me?
The problem is: when I drag two shape nodes to the canvas and connect these two shape nodes , What I want is that when I double click the son shape node ,How can I get the parent shape node id? |
Title: Re: How to get Origin Id Post by Stoyo on Dec 27th, 2011 at 7:03am
Hi,
You could check the incoming links collection of the double-clicked node, and then the origin of the first link: [code] var node = e.getNode(); if (node.getIncomingLinks().size() > 0) { var linkFromParent = node.getIncomingLinks().get(0); var parent = linkFromParent.getOrigin(); // do something with origin }[/code] I hope that helps, Stoyan |
The MindFusion Forums » Powered by YaBB 2.6.11! YaBB Forum Software © 2000-2024. All Rights Reserved. |