Skip to Content
0
May 29, 2011 at 09:21 AM

table column color issue

38 Views

Hi,

I have bound a attribute COLOR ( type WDUI_TABLE_CELL_DESIGN ) to the cell design property of the table column ...and written the following code

lo_nd_flights = wd_context->get_child_node( name = wd_this->wdctx_flights ).

lo_nd_flights->get_static_attributes_table( IMPORTING table = lt_flights ).

LOOP AT lt_flights INTO ls_flights.

lv_ratio = 100 * ls_flights-seatsocc / ls_flights-seatsmax.

IF lv_ratio > 95.

ls_flights-color =

cl_wd_table_column=>e_cell_design-badvalue_medium.

ELSEIF lv_ratio > 50.

ls_flights-color =

cl_wd_table_column=>e_cell_design-criticalvalue_medium.

ELSE.

ls_flights-color =

cl_wd_table_column=>e_cell_design-goodvalue_medium.

ENDIF.

MODIFY lt_flights FROM ls_flights.

ENDLOOP.

lo_nd_flights->bind_table( lt_flights ).

in debugging the code is getting called and the new itab is getting bound also...but the column is not showing any colors...