Hi,
Adding existing entities to a relationship does not use the mappingyou have created in your relationships.
Scripts on forms are only executed when the form is open.
You can use workflow:
On change of attribute City on entity Shop, you can update the Country using the country attribute of your city......
Or you could write a plugin, that should be registered to execute on entity Shopwhen attribute city changes.
Bregds
B