cancel
Showing results for 
Search instead for 
Did you mean: 

Read Table values

Former Member
0 Kudos

Hi,

My task is to read a table values and save it as a text file.

I 've problem in reading the table values i.e. getting the row count of the table.

Please forward ur suggestions.

thanks,

RPN

Accepted Solutions (1)

Accepted Solutions (1)

former_member192434
Active Contributor
0 Kudos

Hi

To read the table row value

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

Thanks

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks a lot for ur support... and sorry for the delayed reply...

Thanks,

RPN

Former Member
0 Kudos

Hi,

Following sample code iterate through a table of sales orders



for(int x=0; x<wdContext.nodeSales_Orders().size(); x++)
    {
    	ISales_OrdersElement element = wdContext.nodeSales_Orders().getSales_OrdersElementAt(x);
    	String batch = element.getBatch();
//Similarly you can access rest of the attributes too.
    }

Regards

Ayyapparaj

Former Member
0 Kudos

Hi,

for row count follow the link below:

For saving data in text file follow the below link: