Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Shade TABLEVIEW object

Former Member
0 Likes
360

Hi.

Could You tell me how can I shade tableview lines when tableview's content is empty ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
340

please refer the below code.You need to loop through the SCREEN and make the fields in display mode.

LOOP AT SCREEN.

IF screen-name = 'ZLTSTRIGGER-EVENT'

OR screen-name = 'ZLTSTRIGGER-MESTYPE'

OR screen-name = 'ZLTSTRIGGER-PARVW'

OR screen-name = gc_add

OR screen-name = gc_delete.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

2 REPLIES 2
Read only

Former Member
0 Likes
341

please refer the below code.You need to loop through the SCREEN and make the fields in display mode.

LOOP AT SCREEN.

IF screen-name = 'ZLTSTRIGGER-EVENT'

OR screen-name = 'ZLTSTRIGGER-MESTYPE'

OR screen-name = 'ZLTSTRIGGER-PARVW'

OR screen-name = gc_add

OR screen-name = gc_delete.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Read only

0 Likes
340

Columns in my tableview object are named

KITAB2-NAME, KITAB2-EMAIL ...

Whilst tview object is named t_komis1


  LOOP AT SCREEN .
    IF ( SCREEN-name EQ '_K_ITAB2-NAME' ) .
      screen-input = 0.
    ENDIF .
    MODIFY SCREEN .
  ENDLOOP .

when I do such thing and t_komis1 has 0 lines (t_komis1-lines = 0) - all rows are white