cancel
Showing results for 
Search instead for 
Did you mean: 

How to get count of rows for a table?

Former Member
0 Kudos

Hi,

How to get count of rows for a table and secondly, how can i have access to a particular cell in a table?

Regards,

Devashish

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Devashish,

WdContext.node<Your_node_name>().size() will give you the no: of rows.

This should be the node that is bound to the table's datasource property.

WdContext.node<Your_node_name>().get<node_name>ElementAt(index_value); will select the row at that particular index.

You can access an attribute of a particular row as

WdContext.node<Your_node_name>().get<node_name>ElementAt(index_value).get<attribute_name>();

Hope this helps,

Best Regards,

Nibu.

Message was edited by: Nibu Wilson

Former Member
0 Kudos

Thanks!

Answers (0)