We need to know if there is a way to validate multiple fields as one and not a separate validation for each field.
For example: I have the fields Serial and Brand, I want to allow duplicate serials only if the Brand is different. And not allow if the Serial and the Brand are duplicates.
Dear Marcelo,
as far as I know this can not be defined. You can define an attribute as unique but this always refers to all objects with the same object type. I searched for a quite similar requirement in the past without luck. My requirement back then was not related to Brands but to Lifecycle Status.
A workaround could be to define different object types for each brand under the same parent object type and leveraging the inheritance feature for the attributes. Yes, not very beautiful and probably with some "side effects" but worth a try if you do not have dozens of brands. If you have some brands with only a few objects you could even think about a brand called "Other <Name of Parent Object Type>".
Kind regards,
Tobias
@Marcelo Montaño Sánchez this can be done through scripting.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Fahad, could you be a little more specific? How could I script such a validation? Thanks, Tobias.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.