I am using the wire service to query several fields and assign to a list. I am trying to create a PDF using jsPDF and I need to create another list that only contains the fields that I will display in the PDF. So in the code below, data has about 20 fields. I only want to show 5 of those fields in my pdf. I assume that the list that I use to create a table using jsPDF can only have the fields I want in the PDF. How can I copy "data" to only include the 5 fields I want to display in the PDF rather than the 20 fields that exist in the variable data
groupstructures(result) {
//if we have data returned
if (result.data && result.data.length) {
//assign the data to the data variable - used as the source for the main datatable
this.data = result.data;
Thanks!!!