Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I need to fetch the internal names of all the IBAs available on a type (ex: wt.part.WTPart). Is there any API already available? If not, can some one help with the approach/code to get this?
I am using 10.2 M010.
Thanks in advance.
Solved! Go to Solution.
I have used the following code to get the IBA internal names.
------------------------------------------------------------
ArrayList<String> result = new ArrayList<String>();
TypeIdentifier identifier = TypedUtility.getTypeIdentifier(typeDef);
TypeDefinitionReadView typeDefView = TypeDefinitionServiceHelper.service.getTypeDefView(identifier);
for (AttributeDefinitionReadView attDef : typeDefView.getAllAttributes()) {
AttributeDefDefaultView ibaRefView = attDef.getIBARefView();
if (ibaRefView != null) {
result.add(ibaRefView.getLogicalIdentifier());
}
There is no supported API to do this, but you may be able to use the Query-Objects webject to get this information.
I have used the following code to get the IBA internal names.
------------------------------------------------------------
ArrayList<String> result = new ArrayList<String>();
TypeIdentifier identifier = TypedUtility.getTypeIdentifier(typeDef);
TypeDefinitionReadView typeDefView = TypeDefinitionServiceHelper.service.getTypeDefView(identifier);
for (AttributeDefinitionReadView attDef : typeDefView.getAllAttributes()) {
AttributeDefDefaultView ibaRefView = attDef.getIBARefView();
if (ibaRefView != null) {
result.add(ibaRefView.getLogicalIdentifier());
}
?