2007 Mar 28 2:28 PM
Dear all,
I have to highlight the rown in a table control that does not satesfy a certain crateria. can you please suggest me how to approch this?
I either have to highlight the row or show them in a different color!!
Please help,
Vj
2007 Mar 28 2:35 PM
So you probably have something like this in your screen flow of the screen.
PROCESS BEFORE OUTPUT.
* PBO FLOW LOGIC FOR TABLECONTROL 'I_ITABCON'
* MODULE I_ITABCON_CHANGE_TC_ATTR.
* MODULE I_ITABCON_CHANGE_COL_ATTR.
LOOP AT I_ITAB
WITH CONTROL I_ITABCON
CURSOR I_ITABCON-CURRENT_LINE.
MODULE I_ITABCON_CHANGE_FIELD_ATTR. "<--- Here is where you are going to change the attributes of the one line.
ENDLOOP.So in this module, the coding can look like this.
module i_itabcon_change_field_attr output.
modify i_itab index i_itabcon-current_line.
loop at screen.
if i_itab-level = 'B'. "<- If condition is satisfied
screen-INTENSIFIED = '1'. "<- Make Blue
endif.
modify screen.
endloop.
endmodule.
Regards,
RIch Heilman
The only way to hightlight, is really just changing the text to blue instead of black.
Regards,
Rich Heilman
2007 Mar 28 2:30 PM
2007 Mar 28 2:32 PM
how to change the color of the text> can you please suggest some code for this
Thanks,
Vj
2007 Mar 28 2:35 PM
So you probably have something like this in your screen flow of the screen.
PROCESS BEFORE OUTPUT.
* PBO FLOW LOGIC FOR TABLECONTROL 'I_ITABCON'
* MODULE I_ITABCON_CHANGE_TC_ATTR.
* MODULE I_ITABCON_CHANGE_COL_ATTR.
LOOP AT I_ITAB
WITH CONTROL I_ITABCON
CURSOR I_ITABCON-CURRENT_LINE.
MODULE I_ITABCON_CHANGE_FIELD_ATTR. "<--- Here is where you are going to change the attributes of the one line.
ENDLOOP.So in this module, the coding can look like this.
module i_itabcon_change_field_attr output.
modify i_itab index i_itabcon-current_line.
loop at screen.
if i_itab-level = 'B'. "<- If condition is satisfied
screen-INTENSIFIED = '1'. "<- Make Blue
endif.
modify screen.
endloop.
endmodule.
Regards,
RIch Heilman
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |