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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

How to retrieve custom attribute values of a part and set them through Api?

ptc-6328570
1-Newbie

How to retrieve custom attribute values of a part and set them through Api?

How to retrieve custom attribute values of a part and set them through Api?

2 REPLIES 2

but i am getting this error can u help me out

ERROR [main] com.ptc.core.meta.type.runtime.server.impl.SecurityLabelConstraintFactory - wt.util.WTRemoteException: Unable to invoke remote method; nested exception is:

java.rmi.UnmarshalException: error unmarshalling return; nested exception is:

java.lang.ClassNotFoundException: wt.part.alternaterep.WTPartAlternateRep (no security manager: RMI class loader disabled)

Nested exception is: wt.util.WTRemoteException: Unable to invoke remote method

Nested exception is: java.rmi.UnmarshalException: error unmarshalling return; nested exception is:

java.lang.ClassNotFoundException: wt.part.alternaterep.WTPartAlternateRep (no security manager: RMI class loader disabled)

wt.util.WTException: wt.util.WTRemoteException: Unable to invoke remote method; nested exception is:

java.rmi.UnmarshalException: error unmarshalling return; nested exception is

the code is:

_WTPart ref1=part;

LWCNormalizedObject obj = new LWCNormalizedObject(ref1,null,null,null);

obj.load("CAGE","COMMODITY");

Object CAGEValue = obj.get("CAGE");

Object COMMODITYValue = obj.get("COMMODITY");

part is the retrieved WTPart from search

Top Tags