cancel
Showing results for 
Search instead for 
Did you mean: 

Get AttributeId of a taxonomy table without previous search

Former Member
0 Kudos

Hi,

is it possible to get the AttributeId´s like the FieldId´s?

I get FieldId´s with this code:

FieldId pkdFieldId = rSchema.getFieldId("Products", "Main_WI_Classification");

But I need this for Attribute´s of a taxonomy table.

I use MDM 5.5 SP6.

Edited by: Dennis Isaak on Aug 24, 2009 11:04 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Dennis

RetrieveAttributesCommand would fetch you the attribute details for a specified taxonomy table.

For more details, please refer the Javadocs.

Cheers

Varun

Former Member
0 Kudos

Yes I know this command, but when I use it, it delivers me all Attributes (Properties) of the taxonomy table

and when I only need one of them (as search parameter)

I have to iterate over all Attributes to find the one I need.

And with a command/method like " * . getAttributeID( taxonomytable, attributename ) "

i would get the AttributeID much easier.

Former Member
0 Kudos

Hi Dennis,

Use the method


MetadataManager.getInstance().getAttributeSchema(-userSessionContext-).getAttribute(...)

Regards,

Walter

Former Member
0 Kudos

no ideas?