02-15-2016 10:41 PM
Hello,
I create a root -> sub object node structure with a 1:1 association, is the association checked by the BO and I can´t create more than one sub object or do I have to program any checks to avoid creation of more than one sub object.
Can anyone explain the logic to me? Is there an example in the system?
Many thanks
Best regards
Roman
02-16-2016 4:05 AM
Hello Roman,
as this check would cost performance, it is not inbuilt in the framework itself. There are applications that rely on fieldcontrol (or are satisfied with just raising error messages) and would not like to spend performance on checking the cardinality and rejecting the modifications.
However you can configure /BOBF/CL_LIB_V_ASSOC_CARD in case you need this functionality (e.g. raising an error message in case of cardinality violation). You could configure it as action validation on save.
Best regards
Tilmann
02-16-2016 4:05 AM
Hello Roman,
as this check would cost performance, it is not inbuilt in the framework itself. There are applications that rely on fieldcontrol (or are satisfied with just raising error messages) and would not like to spend performance on checking the cardinality and rejecting the modifications.
However you can configure /BOBF/CL_LIB_V_ASSOC_CARD in case you need this functionality (e.g. raising an error message in case of cardinality violation). You could configure it as action validation on save.
Best regards
Tilmann
02-16-2016 1:51 PM
Hello Tilmann,
many thanks for the quick and clear answer.
Best regards
Roman