cancel
Showing results for 
Search instead for 
Did you mean: 

Reading table cell data

Former Member
0 Kudos

Hello All,

I have to read the data from the below method and store in conext attibute, so that i can use this stored data for further caliculations.

I can access the the data using this method for single column : wdThis.getObjectDataCellData(cellValue,"ZECMColumnName");

but not sure how to get for more then one.

Here the cellvalue = index starts like 000001 and the ZECMColumnName = data

I am wrting this code retrieve the values but no working:


for(int i = 0; i < wdContext.nodeTableContent().size(); i++)
{
String cellValue = "00000"+i;


if(cellValue != null)
{
wdThis.getObjectDataCellData(cellValue,"ZECM_COLUMN").getContent());
}
}

Any comments will be appreciated!!

Krishna

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member197348
Active Contributor
0 Kudos

Hi Krishna,

If you want to read data from a particular cell value of the table, try like this:

for(int i = 0; i < wdContext.nodeTableContent().size(); i++)
{ 
wdContext.nodeTableContent().getTableContentElementAt(i).getZECM_COLUMN();

}

If you want to read only one value from the table then no need to use loop. If your question to achieve some other please feel free to revert.

Regards,

Siva