cancel
Showing results for 
Search instead for 
Did you mean: 

How to Navigate from popup window to Initial Screen

dhinesh_thirugnanam
Active Participant
0 Kudos

Hi,

I have 2 screens:

Screen1:

Screen2:

:

When i click on ok button of this popup in screen2 by selecting a value from the dropdown.The popup will be required to close and taken to screen1 not screen2(not the background screen).How do i achieve it.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

1)first way ....you can do one thing ...you create that pop up window in some other component ...and in previous component define link to url. so , you can work with both the windows .

2)  or you can definf on_lead_select event in table action ...and in that you can use method

create_window ( you can give the name of the window ).

but link to url will be the best option i am gicing you the code for it .

in context make one node and attribute url and in wddointi write the code :

data : node_node type ref to  if_wd_context_node ,

          elem_node type ref to if_wd_context_element .



          node_node = wd_context->get_child_node( 'NODE').

          elem_node = node_node->get_element( ).



          elem_node->set_attribute( name = 'URL' value = 'http:// 'url of wda aaplication').

but both the windows should be in different component

chengalarayulu
Active Contributor
0 Kudos

Dhinesh,

just create an attribute under component controller... follow the below.

1. create an attribute type ref to IF_WD_WINDOW at component controller level(ex. lr_window)

2. come to your main view(screen 1), write the below line of code where you are generating popup window.

     wd_comp_controller->lr_window = lo_window.

3. Now in Ok button, write the below.

     wd_comp_controller->lr_window->close( ).

clear:    wd_comp_controller->lr_window.

4. Now test the application.

Former Member
0 Kudos

Hi Dhinesh,

Refer following link.

http://scn.sap.com/thread/3179158

The answer given by Sayan will be useful for you.

Thanks

Santosh

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Create outbound plug from popup screen to screen1 and write the code in OK button to fire the plug.

Create a message area in screen 1 and then after pressing the OK button, call the message in Message manager and then mention the view name as first screen name.

Former Member
0 Kudos

Hi Dhinesh,

Here u selecting one value from dropdown ....then pls fallow below procedure.

create one attribute in component controller.

do context mapping to  view 1 and view 2.

in view2  u assign the selected value to that attribute.

in view1 bind that attribute to ui element...

For navigation create plugs()  and call the view1.

Regards,

Venkat

dhinesh_thirugnanam
Active Participant
0 Kudos

Thx for your reply,but i need to just display a success message in screen 1 just by clicking on the ok button.

I didnt understand this step: in view1 bind that attribute to ui element...

why should i bind all the ui element to the attribute?

Former Member
0 Kudos

Hi,

Means u selected value in view2  it reflects to view1( eg  inputfield ubind it. then the selected value shown in inputfield.)