cancel
Showing results for 
Search instead for 
Did you mean: 

Modal PopUp

Former Member
0 Kudos

Hello Gurus,

I have a question regarding modal popup window.

Below is my code in ComponentController:

DATA window_manager TYPE REF TO if_wd_window_manager.

DATA window TYPE REF TO if_wd_window.

window_manager = wd_this->wd_get_api( )->get_window_manager( ).

window = window_manager->create_window( 'WIN' ).

window->open( ).

Here, i'm opening the new window. I have to open it with option RESIZABLE = FALSE.

Unfortunately i can't do it and my window can be resized via minimize/maximize buttons and via mouse.

How to prohibit such a possibility?

p.s. i can't use window->set_is_resizable()

Thank you,

Yury

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos
Former Member
0 Kudos

hi

try this code


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.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
EXPORTING
URL =   ' ' // ur URL here 
MODAL = ABAP_TRUE
HAS_MENUBAR = ABAP_TRUE
IS_RESIZABLE = ABAP_FALSE
HAS_SCROLLBARS = ABAP_TRUE
HAS_STATUSBAR = ABAP_TRUE
HAS_TOOLBAR = ABAP_TRUE
HAS_LOCATION = ABAP_TRUE
RECEIVING
WINDOW = lo_window.
lo_window->open( ).

regards,

amit

Former Member
0 Kudos

Hi Amit,

doesn't help

Regards,

Yury

Former Member
0 Kudos

HI,

I think when you use the above methd for resibale...then you need to explicitly specify teh width and height of the window..

Right...

Please test it out..

Regards,

Lekha.

Former Member
0 Kudos

Hi

still not working

Regards,

Yury