I am trying to update a related entity in a browser screen.
At first, I tried to use a nested dataSource to commit the change, but it didn’t work for me.
then I tried to use the dataManager to commit the updated related entity, the related entity is updated, but I met another problem when I was closing the browser screen, I got a message “Do you want to discard unsaved changes?”
If you commit some entities programmatically and don’t want this message about unsaved changes, clear the “Allow commit” checkbox for your datasource. It corresponds to allowCommit=“false” attribute in XML. Then the datasource will not be checked for unsaved changes.
I found the problem, I made a mistake, I used dataManager to commit the related entity, but I still got a nested dataSource, I when I close the browser, I alway get that message. I have removed the nested dataSource, now it is working fine.