Skip to Content
avatar image
Former Member

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,

Tried,

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers