Hello,
I'm trying to configure a ListGridField to show 3 summary rows in the grid summary but only 1 in the group summary. Can you show me what I am doing wrong in the sample code below? With this configuration, I am getting an error that "object is not a function" from getGroupSummary. I've tried a few different ideas and can't get it to work properly so hoping you can help me figure it out.
I'm trying to configure a ListGridField to show 3 summary rows in the grid summary but only 1 in the group summary. Can you show me what I am doing wrong in the sample code below? With this configuration, I am getting an error that "object is not a function" from getGroupSummary. I've tried a few different ideas and can't get it to work properly so hoping you can help me figure it out.
Code:
field.summaryFunction=getFundAssetSumSummaryFunctions(true); field.getGroupSummary = getFundAssetSumSummaryFunctions();
Code:
function getFundAssetSumSummaryFunctions(returnAll){
var summaryFunctions=[];
if(returnAll)
summaryFunctions.push(getLongSumSummaryFunction());
summaryFunctions.push(getShortSumSummaryFunction());
}
summaryFunctions.push(getTotalSumSummaryFunction());
return summaryFunctions;
}
Comment