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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

How to map my custom Data Utility class to an attribute

VINO
4-Participant

How to map my custom Data Utility class to an attribute

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,

2 REPLIES 2

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.

VINO
4-Participant
(To:VasiliyRepecki)

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

Top Tags