on 07-09-2008 11:03 AM
i want to color specific rows in table. those which have a special key entry..
data: lr_column_x TYPE ref to cl_salv column.
lr_column_x->set_cell_design_filedname( value = 'negative').
Somebody has an idea?
Thanks
Hi
Create an Attribute 'DESIGN' of type WDUI_TABLE_CELL_DESIGN in your Context Node which is binded to the ALV.
Fill this attribute with different values 00 is for Standard, 01 is for negative ( see the value range of the domain WDUI_TABLE_CELL_DESIGN )
and use your code
data: lr_column_x TYPE ref to cl_salv column.
lr_column_x->set_cell_design_filedname( value = 'DESIGN' ).
give the Context Attribute name
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Hi
>
> Create an Attribute 'DESIGN' of type WDUI_TABLE_CELL_DESIGN in your Context Node which is binded to the ALV.
>
> Fill this attribute with different values 00 is for Standard, 01 is for negative ( see the value range of the domain WDUI_TABLE_CELL_DESIGN )
>
> Abhi
Just some advice. Don't use the codes for attribute values directly. Although you can generally look up the values via a ddic domain, there should always be a class constant with the values as well. SAP doesn't make any promises that we won't change the value meanings - only that we will keep the class constants the same. I have seen this in the past where values had to be adjusted after shipping for consistency with WDJ (and for the NWBC and UR consistency). In this case the constant is CL_WD_TABLE_COLUMN=>E_CELL_DESIGN. For instance if you wanted to set standard you would use CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-STANDARD not 00. I think it also has the added vaule of making your cod emore readable.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.