cancel
Showing results for 
Search instead for 
Did you mean: 

how to a open a new window in my webdynpro

Former Member
0 Kudos

Hi

I have a webdynpro with a button that when i press it i want to open a NEW AND DIFFERENT window.

i wrote this code in th button's action

data:  lo_window_manager type ref to if_wd_window_manager.

data:  lo_api_component  type ref to if_wd_component.

data:  lo_window         type ref to if_wd_window.

data:  ld_url type string.

lo_api_component  = wd_comp_controller->wd_get_api( ).

lo_window_manager = lo_api_component->get_window_manager( ).

ld_url = 'http://www.sapdev.co.uk'.

CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW

  EXPORTING

    URL            = ld_url   "'http://www.sapdev.co.uk'

  RECEIVING

    WINDOW         = lo_window.

lo_window->open( ).

but it opent a new windoe in the webdynpro window - what i mean is that after i executed the code above the new window opened over and insted of the webdynpro window while i wanted to be open in a new window/browser seesion.

Is there a way to do that ?

Thanks Ami

Accepted Solutions (0)

Answers (2)

Answers (2)

amy_king
Active Contributor
0 Kudos

Hi Ami,

Your code is correct. I've pasted it as-is into a method of my own and it opens a separate, external window in both IE and Firefox.

The only thing I can think might be happening is the browser or server may be caching an old response. Try clearing your browser cache and also clearing the ICM server cache in the ICM Monitor:

SMICM > Goto > HTTP Plug-in > Server Cache > Invalidate Globally

If that doesn't resolve the issue, could you please post a screen shot of what you see when you open the new window?

Cheers,

Amy

Former Member
0 Kudos

Hi Ami,

Use create_and_open_popup() method instead of CREATE_EXTERNAL_WINDOW() method.

Regards,

Mahidhar.

Former Member
0 Kudos

hi

in the interface if_wd_window_manager i dont have a method called create_and_open_popup()

what is the the name of the interface that include this method.

thanks

Ami

Former Member
0 Kudos

Hi Ami,

Use Wizard and select the radio button "Generate Popup" give your component name and window name that you want to create as a seperate window.

Regards,

Mahidhar.

Former Member
0 Kudos

hi

i did as u wrote me ( using the pop-up etc ) but i only get the methos "create_window" and its apper as a small pop-up window while i need it to be open as a noraml window connected to the url i want

is there a way to change it?

thanks

Former Member
0 Kudos

Hi Ami,

To the code you have added in question try adding the other exporting parameters :

    MODAL          = ABAP_FALSE
    HAS_MENUBAR    = ABAP_TRUE
    IS_RESIZABLE   = ABAP_TRUE
    HAS_SCROLLBARS = ABAP_TRUE
    HAS_STATUSBAR  = ABAP_TRUE
    HAS_TOOLBAR    = ABAP_TRUE
    HAS_LOCATION   = ABAP_TRUE

Regards,

Mahidhar.