Hi Benarji,
you can write javascript/plugin on your one entity to check some condition from you secondary entity, you can use relationship id to connect both entities.
let us know if you want more information on this.
Mahain : Check My Blog
Follow me on Twitter
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.