Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Finding Link (Read 1489 times)
Dominic Hoffmann
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 18
Joined: Mar 19th, 2013
Finding Link
Mar 21st, 2013 at 3:45pm
Print Post  
Hi,

i want to find an existing link inside the link_creating event,
if i determine that the link the user currently wants to create is already existing.
Means, there is alread a link established between origin and destination.
Now i want to highlight the existing link to show the user why he can't create this link.

How can i find the existing link in an efficent way, better than looping all outgoing links from origin node?
Is there a way?

I know the methode findlink and findlinkbyid but the tags of my links are all instances to my own classes and i am not sure if that will work.

FindLInkByID can't also be used in this event because i don't know the id of that particular link.

Thanks,
- Dominic
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Finding Link
Reply #1 - Mar 21st, 2013 at 4:50pm
Print Post  
Hi,

There's nothing wrong with looping over the node's links. You can find a method that finds the links between two nodes here (GetCommonLinks):
http://mindfusion.eu/Forum/YaBB.pl?num=1227111424/1#1

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint