:: Forum >>

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){
return 'N.P.'}
return data ? this.dataToText1(data) : '';

var perc = new AW.Formats.Number;
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.

Wednesday, April 18, 2007

This topic is archived.

Back to support forum

Forum search