Hi there,
I introduced a relationship between the Broker and Client as image above and I would like to write some computations and validations in the Client form based on data from the Broker and Client document.
I can’t introduce another CDM between the Client and Broker because the Contract is CDM and includes the Client & Broker. Additionally, the Client form displays the Contract relation.
Is there any way to write the validation and computations in the Client form based on data from the Broker and Client document?
Thanks & best regards!
You can introduce as many CDMs as you like.
A nesting of CDM forms is definitely possible. You just have to make sure to specify the application model accordingly.
That means, you will probably want to match on the non-CDM DM names (Client or Broker in your case) and then refer to the respective CDM-based form model in the VIEW_ADD directive of the scene.
Hi @erik-radiant-gorge ,
When adding ClientBroker_CDM (using BrokerClient_relationship) to the Client form then I’m unable to use the ContractClient_relationship anymore (Only the BrokerClient_relationship appears in the form).
There should be no restriction there. You should be able to use the same relationship in the ClientBroker_CDM, however, in the other direction of course.
Hi @erik-radiant-gorge ,
Can you explain more about the other direction? I don’t get it.
Can we have a look together to resolve my use case?
I tried to add the relationship again and I got some issues below:
-
SME displayed an invalid relationship in the Contract binding added in Client_form
with form setting:
-
With an invalid relationship, I’m still able to start the application but I got the issue that the child relationship (broker&client) can’t be saved in the Contract form with mean the ADD_LINK method wasn’t called in RPC when saving:
. When creating a new client while creating a new contract I selected a broker for the newly client but when saving the contract a new client was created w/o broker assignment. I took a look in the redux and can see the data is stored in redux but somehow it can’t be saved:
-
My model diagram like this:
Can you have me have a look to see what did I miss?
Thank you!
Erik helped me to fix the issue that child CDM can’t be added in another CDM screen.
Added the child relationship in CDM parent model will resolve this issue.