cancel
Showing results for 
Search instead for 
Did you mean: 

Heading of ViewContainerUIElement

Former Member
0 Kudos

Hi,

I have put some elements in ViewContainerUIElement, and now i want to display heading of ViewContainerUIElement. Like the heading of groupbox(Caption).

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

You can only embed a view inside the ViewContainerUIElement and simply you cannot put some elements in this ViewContainerUIElement,If you want to display heading then you can have caption element that too inside the view only not in ViewContainerUIElement

Regards

Tamil

Former Member
0 Kudos

Yes, i have embedded my ALV view inside the ViewContainerUIElement. ALV is working fine, Now i want to display ALV Heading like 'serach results'. How can i do that?

Former Member
0 Kudos

For this you can use the alv header...

data : lr_header type ref to cl_salv_wd_header.

lr_table_settings ?= l_value. 
lr_header = lr_table_settings->get_header( ).
lr_header->set_text( 'HEADER FOR ALV' ).

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Well ViewContainerUIElement isn't a visual UI element. It is just a place holder for inserting a view. You can't nest UI elements within the ViewContainerUIElement directly. You can however put whatever elemenets you want in the View that is embedded in the ViewContainerUIElement.