Skip to main content
12-Amethyst
June 16, 2014
Question

How to map my custom Data Utility class to an attribute

  • June 16, 2014
  • 1 reply
  • 2566 views

Hello everyone,

I have created a custom data utilities class followed the steps in guide.

But I can't get work to map my class to an attribute. It is not clear in guide(perhaps not for everyone) on how to get attribute ID of an attribute and

how to add with .xconf file. Please someone help me in this.

And also can I able to populate values in dropdown list attribute based on value of previous attribute?

Thanks,

1 reply

1-Visitor
June 17, 2014

Hi.

You should add

<Service name="com.ptc.core.components.descriptor.DataUtility" targetFile="codebase/service.properties">

<Option serviceClass="YourDataUtilityClass"

requestor="java.lang.Object"

selector="YourAttributeInternalName"

cardinality="duplicate"/>

</Service>

to site.xconf file

and then run

xconfmanager -p

command in windchill shell.

VINO12-AmethystAuthor
12-Amethyst
June 19, 2014

Thanks that worked.Any suggestions for second part of my question.?