cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding header of a group

Former Member
0 Kudos

Hi,

Is there a way to hide the header of group UI element? If i set the property "Visible" to "None", it only removes the caption text but the header area still remains the same.

Any suggestions on how to do this?

Regards,

Prasath N

View Entire Topic
Former Member
0 Kudos

Hi Prasath,

I had the same problem and so far I did not like the idea of using other container.

Another option for you could be to declare your own header and to set it to the group. If the object reference is initial, the header is not visible.

But this solution might not work in some cases. The code would look:

METHOD wddomodifyview .

DATA: lo_group TYPE REF TO cl_wd_group.

DATA: caption type ref to CL_WD_CAPTION.

IF first_time EQ 'X'.

lo_group ?= view->get_element( 'MAINGROUP' ).

lo_group->set_header( caption ).

ENDIF.

ENDMETHOD.

Regards,

Kameliya

Former Member
0 Kudos

Thanks a lot to everyone.

Both the solutions (by Khandal and Kamelia) are working fine for me.

Thanks,

Prasath N