Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! 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());
}
?