I have requirement to display a data table based on the row actions of another data table through pop-up.
I have done the pop-up through row actions But I am unable to pass the id of the row to the @wire object to get the query and display in the data table.
Please find the JS below.
@track currentRecord1 = [] ;
@wire(showGradingSamples, {recordId : '$currentRecord1'})
sampleSeededAcres;
openGradingSample(row)
{
let currentRecord1 = [] ;
currentRecord1.push(row.Id);
showGradingSamples({lstprodId1s: currentRecord1});
this.isOpenGradingSample = true;
return currentRecord1;
}
How can I pass the id?