TrackSelection on the table

While we can set trackSelection in actions of a table component I am wondering if we can relate this to other related table. Let me explain what I am looking for. I have address composite entity for Customer. Each composite address entity has Contact entity as composite. I want to allow users to add contacts directly to addresses and when the user click on contact create button, I want to validate if the user has selected an Item from Address so that address is not null in Contact editor. How can I do this?