You need to sign in to do that
Don't have an account?
Naveen Dhanaraj
Create a class and Visualforce page to display two custom object records in single VF( ObjectA__c and ObjectB__c)
I have two objects ( ObjectA__c and ObjectB__c) and i have some record for each object .Those records should be displayed in single VF page .once if i click the record name(A) it should redirect to the record (A) details page
Below is my understanding on your requirement.
You want to display the list of two objects (A and B ) in a same page and on click of that you want to display the record detail in a separate screen. Let me know if my understanding is correct. i will share you the code.
Thanks
Manoj S
Please find below Sample Class and Visualforce Page. Here I am displaying Account Records and Contact Records provind link for names. When clicked on the record name, it will redirect to respective detail page.
VF Page:
Cotroller:
Let us know if that helps you.
Best Regards,
BALAJI