I have a custom search VF page which search on multiple criteria's like FirstName, lastname, DOB, NPI, MemberId etc. After a result is found we show two sections on the VF page, first section shows columns from Contact object and second section shows columns from CareEvent(Custom object) which is a related object to Contact.
I'm showing Carevent Id as a link which must get opened as a subtab under contact object. Can anybody tell me how to do that. getEnclosingPrimaryId is not working because no tabs are open currently. I want to use opensubtab as a solution but not sure how i will get the primary tabs id i.e Contact tab id.