on 11-26-2012 11:33 AM
Hi,
I have created a context node which contain 9 attribute elements . These attributes are actually columns of my table. I want to loop through this table and take each row. Can anyone please tell the code to loop through this table node, so that i can take each row by row from my table.
Thanks,
shiny sunny
Hi,
If Node Name is TableValues and it has attribute column1, column2, then the code to get the values will be like this.
for(int i=0;i<wdContext.nodeTableValues.size();i++)
{
ITableValuesElement tvElement=wdContext.nodeTableValues().getTableValuesElementAt(i);
tvElement.getColum1();
tvElement.getColum2();
//You can retrive more columns like this depends on the attribute you set to the Node
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.