On main datastore on User entity I attached a Customer entity as association, many to one.
Customer entity is from a second (additional) datastore.
Because the new added customer field is transient, I’ve created an additional field (named customerId) in User entity when asked by Studio.
On the UserEdit screen I’ve added a combo selection for this new added field:
<entityComboBox id="cmbCustomer" caption="Customer" dataContainer="userDc" optionsContainer="customerDc" property="customer"> <actions> <action id="clear" type="entity_clear"/> </actions> </entityComboBox>
The customer selection works ok, but after saving user entity, the customerId column in the database is empty (null).
I had to do the update adding extra unnecessary code in controller. Similar, when opening User screen, the customerId is not retrieved from the database.
Is this a normal behaviour for cross datastore associations? I hope not :).