Chinaunix首页 | 论坛 | 博客
  • 博客访问: 176919
  • 博文数量: 31
  • 博客积分: 3000
  • 博客等级: 中校
  • 技术积分: 585
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-17 23:11
文章分类

全部博文(31)

文章存档

2011年(1)

2009年(18)

2008年(12)

我的朋友

分类: 项目管理

2009-05-19 13:49:35

As we all know, we can set the color for each cell in gui alv, it's similar in web alv. like this picture
        
                                 
How can we do that ?
there are two ways .
1. set the color directly
   LOOP AT COLUMNS INTO LS_COLUMN.
  
   lr_column->SET_CELL_DESIGN( 'CL_WD_TABLE_COLUMN=>T_CELL_DESIGN' )
"there are 19 colors: 00 - 18
   ENDLOOP.
2. if the color is dynamic , we can set the cell design name to the spefic column

    lr_column->SET_CELL_DESIGN_FIELDNAME( VALUE = CD_FIELDNAME ).
   well, CD_FIELDNAME contains the values '00 - 18 '
well, differ cell designs may have different fonts. i ve tried to find some way to set fonts, but failed. if some one find the way, please contact me.thank you !

阅读(628) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~