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
Surya PSurya P 

Wrapper class in Lightning

Hi,
I have question regarding wrapper class usage in Lightning.
I have a wrapper class which contains list,integer and string. My client side controller returns wrapper class values. Now how can I separate list values from the given result.
Kindly help me with this question.

Thanks and Regards
Surya
 
VinayVinay (Salesforce Developers) 
Hi Surya,

Review below examples.

https://www.forcetalks.com/blog/how-to-use-wrapper-class-in-salesforce-lightning-component/
https://www.sfdcpoint.com/salesforce/wrapper-class-in-lightning-component-salesforce/
https://sfdcmonkey.com/2017/07/06/use-wrapper-class-lightning-component/
https://www.biswajeetsamal.com/blog/wrapper-class-in-lightning-component/

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar
Naveen KNNaveen KN
Try to debug the client-side lightning component javascript. The variable which holds the result from the server, hover on that in the debug console and you will get an idea to get the values. It will be something like res.string_value or res.wrap_Class.string_value 

--
Naveen KN
Surya PSurya P
Hi Vinay,

Thanks for your reply.I have gone through the links before,I can display the result. But my question is like, I want to display the records using datatable and my client-side controller captured the response from Apex class. Now I need to separate the list values and diplay them using columns with Parent name in one column. So how can I separete only list data from the returned respone.

I'm new to lightning developement.

Regards
Surya