Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Nothing appears in OutgoingLinks (Read 1686 times)
bradaisa
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Sep 9th, 2009
Nothing appears in OutgoingLinks
Sep 23rd, 2009 at 4:30pm
Print Post  
I have this code:

Code
Select All
                link = diagram.Factory.CreateDiagramLink( _
                  selNode, otherRef.Table, otherRef.RowIndex) 



where selNode is a TableNode

When I step through the code, the call works, and the link is created, but the selNode.OutgoingLinks.Count remains at 0 --

In the GUI I see the link from the selNode Table to the otherRef table row. But it seems to not be present in the links collection of selNode -- the problem is that I need to be able to later delete it, but can't find it. Thanks for any tips!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Nothing appears in OutgoingLinks
Reply #1 - Sep 23rd, 2009 at 5:29pm
Print Post  
Try setting selNode.ConnectionStyle to Table before creating the link. Otherwise the link is probably connected to some row and you can find it in the row's OutgoingLinks collection. You could also call the GetOutgoingLinks() method to get a list of all links connected either to the table or its rows.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
bradaisa
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Sep 9th, 2009
Re: Nothing appears in OutgoingLinks
Reply #2 - Sep 23rd, 2009 at 5:34pm
Print Post  
This worked, thanks! I was able to set it to Table in code and was still able to make Row links in code (as I wanted.)
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint