Showing results for 
Search instead for 
Did you mean: 

Popup Window in same component

Active Participant
0 Kudos

Hi All

I have created a component that displays graph information.

The users require a print verion of the view that shows the graph data. I have created a new viewset and view in my component but i cannot display it in a popup.

Here is the code.

data: lr_popup type ref to IF_BSP_WD_POPUP.

IF lr_popup IS NOT BOUND.

lr_popup = me->comp_controller->window_manager->create_popup(

iv_interface_view_name = 'ZAGRI_MILK_REPS/MainWindow'

iv_usage_name = 'printFriendlyPopup'

iv_title = 'Popup' ).

lr_popup->set_window_width( iv_width = 600 ).


lr_popup->set_on_close_event( iv_view = me iv_event_name = 'EH_ONRETURN').

lr_popup->open( 'OPEN_PRINT_POPUP' ).

Has anyone done this

any help would be great


Accepted Solutions (0)

Answers (1)

Answers (1)

Active Participant
0 Kudos

Got this sorted

I had to create a new window, add the viewset to the window.

I then added the new window to the component interface.

I then created a new component usage that uses my new window and then the popup worked.