cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
Visitor

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

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.

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

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

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

}

View solution in original post

2 REPLIES 2
Highlighted

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

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

Highlighted

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

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

}

View solution in original post

Announcements