on 09-15-2009 9:12 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.