Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Linking using table cells (Read 1506 times)
turtlebase
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Apr 6th, 2011
Linking using table cells
Jul 25th, 2011 at 6:35pm
Print Post  
I have an underlying object that I want to modify when the user creates an incoming link. I have tables that are fashioned based on your entity example with input connections and output connections.  I want to take the Table Column, Row value from the output side and modify the corresponding table col,row value on the destination side with the text from the originating output connection.  Is this a simple action – would the linkCreated be the place to start?  Did explain this well enough?
Thank you
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Linking using table cells
Reply #1 - Jul 26th, 2011 at 5:46am
Print Post  
As far as I can understand, that's exactly the event you need. You can get a reference to the created link from the event argument. Then you can access the origin and destination tables through the link's Origin and Destination properties respectively. The table rows the link is attached to can be obtained through the OriginIndex and DestinationIndex properties.

For example, the following code modifies the destination cell of a newly created link with the value of the origin cell (in a table with two columns):

Code
Select All
(e.Link.Destination as TableNode)[0, e.Link.DestinationIndex].Text =
      (e.Link.Origin as TableNode)[1, e.Link.OriginIndex].Text; 


I hope this helps.

Regards,
Meppy
  
Back to top
 
IP Logged
 
turtlebase
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Apr 6th, 2011
Re: Linking using table cells
Reply #2 - Jul 26th, 2011 at 10:57am
Print Post  
Thanks Meppy That's what I needed to know!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint