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
Radhika Pawar 12Radhika Pawar 12 

Want to display parameters in single table from multiple lists based on common parameter

I have two lists which are populated by REST Response.First list is List<Business> Abc and second is List<Sales> xyz.
1)List<Busiess> Abc have below parameters
-AccountNumber
-BusinessStatus
-BusinessDescrib
2)List<Sales> xyz have below parameters:
-AccountNumber
-salesStatus
-salesDesc

AccountNumber is a common value in Both list.

I want to display the single table with account number and Its repective parameters from both lists (BusinessStatus,BusinessDescrib,salesStatus and salesDesc)
 
Gaurav Jain 7Gaurav Jain 7

Use Wrapper class as below:

List<SampleWrapperclass> pqrwrap have below parameters:

Busiess abcobj;
Sales xyzobj;
String Accountnumber;

Mark it as Best Answer, if it helps

 
Radhika Pawar 12Radhika Pawar 12
Hi Gaurav,

can you please provide me similar example ?
 
Gaurav Jain 7Gaurav Jain 7
Hi Radhika,

Please check below link:

http://www.infallibletechie.com/2015/03/sample-wrapper-class-using-apex-in.html

Mark it as Best Answer, if it helps