cancel
Showing results for 
Search instead for 
Did you mean: 

How to access single column in table?

Former Member
0 Kudos

Hi,everybody!

How to access a single column in table.

I sorted my table with standard TableSorter.

Now I need to get one column from this table to

do something with it's data.How do I get it?

Regards,

Michael

Accepted Solutions (1)

Accepted Solutions (1)

former_member286976
Active Participant
0 Kudos

Hi Michael,

If you just want to retrieve the data, you could use the following code.

//Get the node which the table is bound to
IWDNode node = wdContext.nodeTable();

//iterate thru the elements
for(int i = 0 ; i<node.size();i++)
{
  IWDNodeElement ne = node.getElementAt(i);
  Object value = ne.getAttributeValue("<column name>");
  //Here you have the data in the value variable
  //and you can manipulate this now
}

Regards,

Sudeep

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

you can go as sudeep sugessted or you can do as follows.

in the for loop as sudeep sugessted

use this line to get value o a table column

wdContext.nodeTable.getTableElementAt(i).get<column name>