4
« on: February 12, 2020, 07:36:34 pm »
Hi,
We have an issue:
1. The data in the column is "-6.513158302558158" with a format string of "##%". The correct value of -7% appears in the grid. (just like the output of the function pq.formatNumber("-6.513158302558158","##%"))
However, when exporting to Excel, it changes the value to -651.315830255816%
2. Is there a way to not include hidden rows when exporting to excel? I tried
const $excludeHidden = $("#export_exclude_hidden");
const excludeHidden = $excludeHidden.is(":checked");
if (excludeHidden) {
const {sheets:[sheet]} = w1;
if (sheet){
sheet.rows = _.filter(sheet.rows,r=> !r.hidden);
}
}
which worked pretty well, except that it shows the summary (for aggregate columns) both at the top and at the bottom of the group. Eg (I put the duplicate summaries in bold) - I want the summary to only appear at the bottom of the group when the group is expanded, the same way it appears in the grid.:
Healthcare (1) $.00 $.00 $76.00 -$76.00 %
ABC 26110 MCV abcdefg $.00 $.00 $76.00 -$76.00 %
$.00 $.00 $76.00 -$76.00 %
Institutions (1) $.00 $.00 $164.67 -$164.67 %
XYZ 27071 MCV xyzwx $.00 $.00 $164.67 -$164.67 %
$.00 $.00 $164.67 -$164.67 %