on 04-20-2007 3:55 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.