3.2.0

Applying numeric (percentage, money, etc) format to footers

Hi All,

for some reason, formats I apply to all columns, are not applied to footer cells.

Here's the code I use for format definition: at the end how I apply the format to (as an exampe) 4 columns:

var money = new AW.Formats.Number;
money.setTextFormat("€ #.###,##");
money.dataToText1 = money.dataToText;
money.dataToText = function(data){ 
if(isNaN(data)){
return 'N.P.'}
return data ? this.dataToText1(data) : ''; 
}

var perc = new AW.Formats.Number;
perc.setTextFormat("###,##%");
perc.dataToText1 = perc.dataToText;
perc.dataToText = function(data){ 
return data ? this.dataToText1(data) : ''; 
}

obj.setCellFormat(perc, 1);
obj.setCellFormat(money, 2);
obj.setCellFormat(perc, 3);
obj.setCellFormat(money, 4);


Everything works: yet footer cells are printed without formats.
Any help appreciated.

Diabolik
Fab
April 18,

This topic is archived.

See also:


Back to support forum