:: Forum >> Version 2 >>

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(perc1);
obj.setCellFormat(money2);
obj.setCellFormat(perc3);
obj.setCellFormat(money4); 
Everything works: yet footer cells are printed without formats.
Any help appreciated.

Diabolik
Fab
Wednesday, April 18, 2007



This topic is archived.

Back to support forum

Forum search