cancel
Showing results for 
Search instead for 
Did you mean: 

Open URL in a new window by closing the parent window

Former Member
0 Kudos

Hi Friends,

Is there any option to open URL in a new window by closing the parent window on a button click?

Already implemented the logics suggested in /people/mohammed.anzys/blog/2007/06/05/how-to-close-parent-window-in-webdynpro-applications , the thread ' URL in same window ' and the standard component WDR_TEST_EXIT_PLUG .But button is not triggerring any actions .plz help me ..............

Regards,

Radhika

Accepted Solutions (1)

Accepted Solutions (1)

arjun_thakur
Active Contributor
0 Kudos

Hi,

Please Refer the code given by Ihar Partuhalau in this thread: .

I hope it helps.

Regards

Arjun

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

Do the following steps :

-> Make an Outbound Plug to the Window.

->Make the type of Outbound plug to Exit Type.

->Add URL of type String as a parameter to the outbound plug of Window.

->Do remember to add Component Name in the Properties Tab of View ( othervs Calling Outbound plug of window from view wont b possible ).

To open a new URL with closing the previous one write this Code in OnAction of Button : ( this Code can be get from Code Wizard too ).

DATA lo_zexit TYPE REF TO ig_zexit . <zexit is name of my Component>

lo_zexit = wd_this->get_zexit_ctr( ).

lo_zexit->fire_out_window_plg(

url = 'http://www.google.com' " string

).

I hope it helps.

Thanx.