Skip to Content

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

Apr 12, 2017 at 10:40 AM


avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers