I lost data when modifying an entity that references another entity of another DataStore.
I have another DataStore: otherStore, connected via REST DataStore, in otherStore there is an entity “User”.
And I have an entity “Contract” in the Main Data Store, in “Contract” I have a field “user” that links to the table “User” in otherStore and @DependsOnProperties field: “userId”.
Contract List Screen:
I have a contract edit screen with fetchPlan="_base".
Contract Edit Screen(fetchPlan="_base"):
After I edit the “name” field and save, the “user” and “userId” fields data are lost:
Same when I run BPM process when I use: Entity Data Task. I also lost data feild “user” and “userId”:
Can you explain and give me any solution or suggestion?
Many thanks & Best regards
HungTM
But I have a new problem when creating ContractProvider table and @ManyToOne reference to Contract and when I open edit screen with full fetchPlan I get error like this:
Here I have an example project, still from your project and I have upgraded the version and added 2 more entities, to reproduce the error, create a “Contract” record and then create a “ContractProvider” record and you will get the above error.