Skip to main content
1-Visitor
March 2, 2015
Solved

Is there any API to fetch the internal names of all the soft attributes available on a type say "wt.part.WTPart"?

  • March 2, 2015
  • 2 replies
  • 3174 views

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.

Best answer by IsmailShaik

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());

}

2 replies

23-Emerald I
March 9, 2015

There is no supported API to do this, but you may be able to use the Query-Objects webject to get this information.

IsmailShaik1-VisitorAuthorAnswer
1-Visitor
March 10, 2015

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());

}

4-Participant
May 15, 2024

KB_10844951_0-1715778718521.png

?