Skip to Content
Apr 12, 2017 at 10:40 AM

How to get Attribute Pointer for all the cells of a column in a table to check validation at once?


Hi All,

Currently, i could able to get attribute pointer of a particular cell in a table and validate, as

if (!wdComponentAPI.getValidationCheck().isValidAttribute( wdContext.currentMaterialListElement().getAttributePointer( "primaryPlant"))) {

wdComponentAPI.getValidationCheck().setAttributeValid( wdContext.currentMaterialListElement().getAttributePointer( "primaryPlant")); }


But there is a case where i need to validate all the cells of a column in a table on a button click,


for (int i = 0; i < wdContext.nodeMaterialList().size(); i++) {

if (!wdComponentAPI.getValidationCheck().isValidAttribute( wdContext.nodeMaterialList().getMaterialListElementAt(i).getAttributePointer( "primaryPlant"))) { wdComponentAPI.getValidationCheck().setAttributeValid( wdContext.nodeMaterialList().getMaterialListElementAt(i).getAttributePointer( "primaryPlant")); }


But of no luck... kindly let me know the way out.

Thank You