Getting product description from category

-3
Hey guys, I inherit the product details from the category it is connected to. But I can't make the values unique. So lets say I give cola the Color Black, als soda's in the category Soda will have the same value. Is it possible to make just one attribute unique with a constraint or something?
asked
2 answers
3
Hi Ismail,

I am not sure if this is what you are looking for, but Mendix allows you to configure validation rules for your attributes.

Just right click on an Entity in the modeler and navigate to validation rules. (see screenshot)

Hope this helps,
Andrej

answered
1

I don't follow, you have a product entity that is associated to a category entity. Because of this fact any value within the category will be shared through any product associated to the same category.

If you want to make one piece unique you add an attribute to the product. You can copy an attribute from the category and stamp that value into an attribute of the product as a default, then allowing the user to change that value. 

 

answered