function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rocky.4QRocky.4Q 

Is it possible to show a list of two different objects?

I have 2 objects Scholarship and Award.

 

The 2 objects are the exactly the same except that Scholarship has has a Master-Detail relationship and Award has 3 extra fields. I want to display them in a list of Awards & Scholarships only showing the common fields they share. I also want them to be clickable to view the Award or Scholarship.

Best Answer chosen by Admin (Salesforce Developers) 
amritamrit

Hi,

 

Yes We can create list of two different objects.It will display two different list.Do u want to merge the lists?If it so u hve to create a wrapper class.

 

Thanks

Amrit

All Answers

amritamrit

Hi,

 

Yes We can create list of two different objects.It will display two different list.Do u want to merge the lists?If it so u hve to create a wrapper class.

 

Thanks

Amrit

This was selected as the best answer
Sam27Sam27

search for wrapper class example....that would solve your problem.