Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Need some help creating diagram links (Read 2517 times)
kmontgom
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Nov 13th, 2008
Need some help creating diagram links
Mar 18th, 2009 at 3:34pm
Print Post  
Hi,

This is a continuation of the workflow application I've been working on.

I construct the workflow as a series of activities. Each activity corresponds to a TableNode, and the parameters of the activity are rows within the TableNode. Everything works more or less as expected.

Now, what I'd like to do is put diagram links from the base of one TableNode to the top of the following TableNode. This indicates control flow.

My first approach was just to create a DiagramLink using the first and second TableNode's as parameters. This does indeed create the link, but it attaches it to the middle row of each TableNode. Not quite what I wanted.

I then created a new AnchorPattern for the TableNode, and created AnchorPoints along the middle of the top and middle of the base of the TableNodes.

Creating the DiagramLink still causes the link to be made using the middle row of each TableNode.

OK, so I decided to use the fact that I could create a link between two points. I computed a set of points based on the TableNode AnchorPoints.

Now, when I attempt to create the DiagramLink based on these two points, I get a NullReferenceException.

So, how do I go about creating a link between two TableNodes, and such that the link does not join the middle row of the TableNodes?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need some help creating diagram links
Reply #1 - Mar 18th, 2009 at 3:52pm
Print Post  
Hi,

Try that with TableNode.ConnectionStyle set to Table or Both.

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


I love YaBB 1G - SP1!

Posts: 11
Joined: Nov 13th, 2008
Re: Need some help creating diagram links
Reply #2 - Mar 18th, 2009 at 4:08pm
Print Post  
Thanks for the quick response, but it doesn't seem to work.

It seems to be trying to connect the tables to something that is at the very top of the design surface. I don't have anything up there, all my nodes are displaced from the top by 50 or 100 units.

Just to be sure that I'm not doing anything wrong:

* when I create a new TableNode, I specify its ConnectionStyle to "TableConnectionStyle.Table"

* I create an AnchorPattern for the TableNode (this is in addition to an AnchorPattern for each row in the table). The TableNode AnchorPattern has two AnchorPoints, situated mid-way along the top and bottom edges of the TableNode

* I create a DiagramLink between successive TableNodes by calling diagram.Factory.CreateDiagramLink( TableNode, TableNode)

When I do this, I get the wierd behavior.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need some help creating diagram links
Reply #3 - Mar 19th, 2009 at 1:18pm
Print Post  
Looks like a bug; we'll fix it tomorrow.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint