Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How can i get origen/destination table node index (Read 2063 times)
roberto.bonilla
YaBB Newbies
*
Offline


I'm so Happy

Posts: 14
Joined: May 25th, 2009
How can i get origen/destination table node index
Jun 17th, 2009 at 4:13am
Print Post  
I have 2 tablenode in the diagram, but in the event
doc_LinkCreated i get the origen row and destination row

Dim ori As Integer = e.Link.OriginIndex
Dim des As Integer = e.Link.DestinationIndex

But the question is

How can get i the same event the value of each row in each table node

i need get the the value of row 0 of table 1 and row 1 of table 2



+---------+ +--------+
|Table1 | |table2 |
+---------+ +--------+
|row 0 |<--+ |row 0 |
|row 1 | |-->|row 1 |
+---------+ +--------+

thanks in advance

RB
  

RB
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How can i get origen/destination table node in
Reply #1 - Jun 17th, 2009 at 5:16am
Print Post  
If you know the row index, you can access the corresponding Row object through the TableNode.Rows collection. To get some cell in the row, use the indexer property (Item in VB.NET):

string cellText = table[0,row].Text;

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
roberto.bonilla
YaBB Newbies
*
Offline


I'm so Happy

Posts: 14
Joined: May 25th, 2009
Re: How can i get origen/destination table node in
Reply #2 - Jun 17th, 2009 at 12:22pm
Print Post  
Stoyan,
thanks for the quick Answer

but my problem is how can get the origen table index and the destination table index for get the cells value origen and destination

dim tbl_orig as TableNode
dim tbl_des as TableNode
Dim rowori As Integer = e.Link.OriginIndex
Dim rowdes As Integer = e.Link.DestinationIndex
---------------------------------------------------------------

tbl_orig = doc.Nodes(????) <-- How get index
tbl_des = doc.Nodes(????) <-- how get index

---------------------------------------------------------------
dim cellori as string = tbl_orig(0,rowori)
dim celldes as string = tbl_des(0,rowdes)


??? ??? Embarrassed Undecided
  

RB
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How can i get origen/destination table node in
Reply #3 - Jun 17th, 2009 at 12:42pm
Print Post  
Hi,

You do not need an index, you can access the tables directly using the links' Origin and Destination properties:

Code
Select All
dim origin as TableNode = CType(e.Link.Origin, TableNode)
dim destination as TableNode = CType(e.Link.Destination, TableNode)
 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
roberto.bonilla
YaBB Newbies
*
Offline


I'm so Happy

Posts: 14
Joined: May 25th, 2009
Re: How can i get origen/destination table node in
Reply #4 - Jun 17th, 2009 at 1:13pm
Print Post  
Grin Grin Grin Wink

Stoyan

Thanks Very much....  Grin

great, works perfect!!!

Grin
  

RB
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint