Open doc to read

How do I open a doc in a composite app just for read?I have 2 DBs

DB 1 has a view of docs

when I click on a doc in DB1 I want to open in another pain a doc from DB2.

there is a key that links the 2 docs

I just can not figure out how to make this happen in a composite app…