This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Manufacturer Part Creation

aravinth_r - Friday, February 17, 2012 5:18 AM:

When creating the Manufacturer Part in the system, user is allowed to enter the Part number and the Manufacturer name. Assume the user has entered Part number as A and Manufacturer as M1 and has saved the data. And the system shows a Manufacturer Part A with Manufacturer as M1. When the user tries to create another Manufacturer Part with number A and Manufacturer M1, system should ideally restrict user to do so as it is a data duplication. But currently ARAS PLM system allows it.

How do i restrict it? I am looking to write a custom method to be called on the save form event. But I do not find such an event? How to implement this?

 



RobMcAveney - Friday, February 17, 2012 8:28 AM:

There's no need to write code to do this.  Just edit the Manufacturer Part ItemType and turn on the Unique flag on both the item_number and manufacturer properties.  This will create a unique constraint on the combination of these properties.