Create a Unique Key
You can create a unique key to make sure that two objects cannot be saved with the same values for a set of chosen attributes.
Before you begin: Create a specialization or a deployment package. For more
information, see Creating a Specialization Package or Creating a Deployment Package.
Result: The key appears in the Unique Keys List window.
- Name corresponds to the key name.
- Constrained Type (Owner Package) shows the package containing the type constrained by the key.
- Constrained Extension (Owner Package) shows the list of the constrained extensions.
Notes:
- Attributes can be taken from the type and/or the extension, if any. A unique key can also constraint some basic attributes such as revision, owner, originated.
- You cannot create unique keys for multiline and multivaluated attributes.
- The attributes constrained by the unique key are those that are checked.
- The unique key is only applied to objects that have the type extension you specified in step 3.d. To automatically add a type extension to an object, either select true from the Automatic addition list when creating a deployment extension, or create a business rule. For more information, see Creating and Deleting a Deployment Extension and Create a Business Rule.
What's Next
Next, activate the unique key. For more information, see
Manage Unique Keys: Activating Unique Keys.