Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

Windchill 10.2 : Cannot find newly added attributes by using attributeContainer.getAttributeDefinitions()

$
0
0

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?


Viewing all articles
Browse latest Browse all 3592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>