Skip to content

Commit

Permalink
improved the formatting in the sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Wald committed Jun 27, 2018
1 parent 69b7d59 commit d1c1fa6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Demo/Enterprise/AggregationDemo.bbj
Expand Up @@ -48,14 +48,14 @@ setupGrid:
rs!.setAttribute(playingTimeIndex!,"ALLOWED_AGG_FUNCS","sum,min,max")
rem convert string to number
rs!.setAttribute(playingTimeIndex!,"VALUE_GETTER","Number(data.PLAYINGTIME)")
rs!.setAttribute(playingTimeIndex!,"FOOTER_VALUE_GETTER","'PlayingTime Total' + '(' + x + ')' ")
rs!.setAttribute(playingTimeIndex!,"FOOTER_VALUE_GETTER","'PlayingTime ' + column.aggFunc +' (' + x + ')' ")

costIndex! =rs!.getColumnIndex("COST")

rs!.setAttribute(costIndex!,"ENABLE_VALUE","1")
rs!.setAttribute(costIndex!,"AGG_FUNC","sum")
rs!.setAttribute(costIndex!,"ALLOWED_AGG_FUNCS","sum,avg")
rs!.setAttribute(costIndex!,"FOOTER_VALUE_GETTER","if(x) {return column.aggFunc + '(' + BBj.Masks.Types.number(x, '##,##.0' , ',' , '.') + ') $'} else {return x} ")
rs!.setAttribute(costIndex!,"ALLOWED_AGG_FUNCS","sum,avg,min,max")
rs!.setAttribute(costIndex!,"FOOTER_VALUE_GETTER","if(x) {return column.aggFunc + ':' + BBj.Masks.Types.number(x, '### ##0.00' , ',' , '.') + ' $'} else {return x} ")

grid! = new BBjGridExWidget(wnd!,100,0,40,800,560)

Expand Down

0 comments on commit d1c1fa6

Please sign in to comment.