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

全部博文(31)

文章存档

2011年(1)

2009年(18)

2008年(12)

我的朋友

分类:

2009-05-19 13:51:48

Same as setting web alv color, the system also need the " read/edit"  property. the result like this picture

  
 
the cell(4,4) and cell(5,5) is read only and others are editable.

there are also two ways to do this.
  1. set the read/edit property directly.
        when you do the columns loop, you can set the property .but it's difficult to set each cell's property,so I advice the next method.
    2. set the read/edit property column name.
        build the read/editp property column for each column
        ---------------------code---------------------------------
        CONCATENATE 'READONLY' LNAME INTO is_fieldcat-fieldname.
        APPEND is_fieldcat TO gt_fieldcatalog.
        " you may need to do the loop.
       -----------------------------------------------------------
       in web alv, we aften use inputfield to fill the cell and let end user to edit.
       so we use the method of the inputfield to do this matter.

       LR_INPUT_FIELD->set_read_only_fieldname( value = RO_FIELDNAME ).
       when you process the data ,you can fill the value of this read/edit property cell. ABAP_TRUE OR ABAP_FALSE.
       after binding this special data table to the web alv,which  contains the read/edit property column ,
       you will see the result like picture above.
     

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