Windchill 10.2 : Cannot find newly added attributes by using attributeContainer.getAttributeDefinitions()
I just created a new global attribute (att1) and added it to an existing classification (classifX). Now I cant find that attribute within the classification attributes. My code looks like this:
ClassificationNode cNode = queryForClassificationNodeByName("classifX");
cNode = (ClassificationNode)IBAValueHelper.service.refreshAttributeContainer(cNode, "CSM", null, null);
DefaultAttributeContainer attributeContainer = (DefaultAttributeContainer) ibaHolder.getAttributeContainer();
AttributeDefDefaultView views[] = attributeContainer.getAttributeDefinitions();
for (int lv = 0; lv < views.length; lv++) {
AbstractValueView avv[] = attributeContainer.getAttributeValues(views[lv]);
for(int i = 0; i < avv.length; i++){
System.out.println(avv[i].getDefinition().getName());
}
}
I get all the other attributes but not the attribute I just created. Could any one please tell me what's missing?

