Modify Part Usage Attributes without creating a iteration of the parent part
Hello,
Is it possible to modify part usage attribute (Quantity) without creating a new iteration of the parent or doing a check-out/check-in?
I have the following code to modify "findNumber" which is also a usage attribute. Please provide your suggestions.
QueryResult qr = WTPartHelper.service.getUsesWTPartMasters(parentPart);
while (qr.hasMoreElements()) {
WTPartUsageLink ul = (WTPartUsageLink) qr.nextElement();
WTPartUsageLink usageLink;
PersistableAdapter obj = new PersistableAdapter(ul, null, null, new UpdateOperationIdentifier());
obj.load(attName);//attName="findNumber"
obj.set(attName,attValue);
usageLink = (WTPartUsageLink)obj.apply();
IBAValueDBService ibaserv = new IBAValueDBService();
ibaserv.updateAttributeContainer(usageLink,((DefaultAttributeContainer)usageLink.getAttributeContainer()).getConstraintParameter(),null,null);
PersistenceServerHelper.manager.update((Persistable)usageLink);
}
Regards,
Hari R

