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

When validating usage link attributes isQtyUnitAttributeChanged() method retuns incorrect result.

0 Kudos

When validating usage link attributes isQtyUnitAttributeChanged() method retuns incorrect result.

While validating usage link attributes SavePartUsesSubCommandDelegate.validateUsageLink(TypeInstance var1), isQtyUnitAttributeChanged(AttributeContainer var0, AssociationIdentifier var1) method should return the comparison result based on previous value and current value.

Hence getting Exception "Occurrences exist that must be removed before the unit can be changed" while updating usage link attributes programatically.

 

FileName: \com\ptc\core\foundation\occurrence\server\impl\SavePartUsesSubCommandDelegate.java

          \com\ptc\core\foundation\occurrence\common\OccurrenceHelper.class

i.e.

Previous QtyUnit = 'EACH' Current QtyUnit = 'EACH'

if previousQtyUnit.equals(currentQtyUnit) then

     return 'FALSE'

Else 

    return 'TRUE'

 

As per current implementation method returns TRUE even if no QtyUnit is updated.

if currentQtyUnit != null then

     return  'TRUE'

3 Comments
vyewale
4-Participant

hello, Is there any updates on this?

vyewale
4-Participant

Hi Team,

 

Any updates on above idea? Are you planning to take it ahead or needs more details on this?

olivierlp
Community Manager
Status changed to: Archived

Hello,

We are archiving your idea as part of a general review. This action is based on the age of your idea and the total number of votes received, as per this announcement.

You can always post a new idea with all the details required in the form.

Thank you for your participation.