Currently when switching from viewing to editing an object, the selection in view mode is lost.
E.g if a customer location contact is being viewed, a Location contact is selected from the Contacts tab.
When editing the customer, the Patient tab is selected. If the intention was to edit the Location contact,
the user then has to navigate to the Contact tab, and reselect the contact.
To simplify editing, the view selection should be retained so that what was selected when viewing the object is automatically selected when editing it.
Changes applied to vpms, revisions 5406, 5409, 5414, 5415