on 04-30-2008 2:08 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you create Group Element dynamically using WDDOMODIFY method, it is possible to display group without header.
try following sample code in WDDOMODIFY method.
DATA lo_container TYPE REF TO cl_wd_uielement_container.
DATA lo_group TYPE REF TO cl_wd_group.
lo_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
lo_group = cl_wd_group=>new_group( ).
lo_group->set_design( cl_wd_group=>e_design-secondarycolor ).
lo_group->set_height( ' 100' ).
lo_group->set_width( '100' ).
cl_wd_grid_data=>new_grid_data( element = lo_group ).
cl_wd_matrix_layout=>new_matrix_layout( container = lo_group ).
lo_container->add_child( lo_group ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Prasath,
the header will not be there if you create the group dynamically. Have a look at CL_WDR_MESSAGE_AREA~CREATE_MSG_LIST for an example.
Regards,
Rainer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use transparent container instead which does not have header .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks Thomas and Sridevi.
If removing the header is not possible do we have a way to change the color of the header to a custom color? We have a custom color for our header area of the page (as per the company specifications). We would at least prefer to have the color of the header with our own custom color. Is this possible?
I am using a group because i need a border around the elements that i have in my group. I am unable to find a way to place a border around a transparent container. Or do we have some other solution for this?
Thanks,
Prasath N
Hello Prasath,
the header is an integral part of a group. My suggestion is to use a different container, such as a TransparentContainer or ScrollContainer. They have no header.
Best regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
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.