mtconfig = {
reportName: 'Match_Stats_View',
criteria: 'Parent_Season==' + ssitem.ID,
}
var mthtitems = '';
let mtdet = ZOHO.CREATOR.API.getAllRecords(mtconfig).then(function(mtrecords) {
var mtrecordArr = mtrecords.data;
mtrecordArr.forEach(mtitems => {
mthtitems += `<tr>
<td>${mtitems.Match_Name}</td>
<td>${mtitems.Points}</td>
<td>${mtitems.Fouls}</td>
<td>${mtitems.Rebounds}</td>
<td>${mtitems.Assists}</td>
<td>${mtitems.Steals}</td>
<td>${mtitems.Blocks}</td></tr>`
}) //match for loop
});
console.log('match'+mthtitems);