cancel
Showing results for 
Search instead for 
Did you mean: 

Navigation between Windows in same component

Former Member
0 Kudos

Hi,

I have WINDOW1 (Main Window) and WINDOW2 (Popup Window) in same component.

Is it possible to navigate from WINDOW1 to WINDOW2 using window Plugs.

I am trying to get an answer to this since yesterday but no luck !!

Thanks,

Hardik

Accepted Solutions (0)

Answers (3)

Answers (3)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can direct navigation plugs of one view into the navigation plug of a window. It would have the effect that you describe. Here is an online help article on the subject:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fb/67c0410c2dcc17e10000000a155106/frameset.htm

Former Member
0 Kudos

hi,

Create a Window 1 with VIEW1.

i tried with plugs but not able to get it,

so what i have done now is

in the view 1 i have put a button and open the view of window 2 as popup.

data: lr_popup type ref to if_wd_window,

lr_view_controller type ref to if_wd_view_controller.

data: lr_api_comp_controller type ref to if_wd_component,

lr_window_manager type ref to if_wd_window_manager.

lr_api_comp_controller = wd_comp_controller->wd_get_api( ).

lr_window_manager = lr_api_comp_controller->get_window_manager( ).

lr_popup = lr_window_manager->create_window(

MODAL = ABAP_TRUE

window_name = 'W_POPUP' "Name of the window created in step 2

TITLE = 'List Of Candidates'

CLOSE_BUTTON = ABAP_TRUE

BUTTON_KIND = if_wd_window=>CO_BUTTONS_CLOSE

  • MESSAGE_TYPE = if_wd_window=>co_msg_type_error

CLOSE_IN_ANY_CASE = ABAP_TRUE

*MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE

).

Its working ok.

Best regards,

Rohit

Former Member
0 Kudos

Hi,

[]

[]

[]

[]