Assuming the common Field between the 2 Datasource is EmpID, in the Onselect of an icon inside the Gallery1, put:
Set(Myselection, ThisItem.EmpID)
Then on the Item of the form in the details screen;
LookUp (Datasource,EmpID=Myselection)
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.