I can find anything that would suggest this is possible or otherwise I have the following declared models. The product:
<type name="syn:produit">
<title>Produit</title>
<parent>cm:cmobject</parent>
<properties>
<!-- properties defined -->
</properties>
</type>
product order:
<type name="syn:produitCommande">
<title></title>
<parent>cm:object</parent>
<properties>
<propert name="productType">
</property>
</properties>
</type>
I would like to constraint the productType of the syn:produitCommande to a list of syn:produit. Is it possible to do this OOTB (I think no is the answer to that), I have seen example codes of dynamic constraints but a lot of "That's a bad idea" warnings that goes with the code. I need advice on how to proceed with resolving this issue with possible code examples. (Not entirely understood the text on how to build the custom constraint yet.)