cancel
Showing results for 
Search instead for 
Did you mean: 

create_popup_to_confirm window_height parameter not working

Former Member
0 Kudos

Hi,

I´m using confirm popups and actually they are working as expected but not been resized to the height I´m seting them, what could be wrong with my code that it is not working? or it is that it is not possible to control the widht and height when sending a window with message type co_msg_type_question ?

I´m sending the height as a parameter of the Method(POPUP_HEIGHT) since this Method is been used by other components, and the value I´m passign at this time is '80'.

Here is my code:


method CONFIRMPOPUP .
DATA: L_COMPONENT_API type ref to if_wd_component,
L_WINDOW_MANAGER type ref to if_wd_window_manager,
L_WINDOW_POPUP type ref to if_wd_window,
L_API type ref to if_wd_view_controller,
L_MESSAGE_TEXT type string_table.
insert MESSAGE into table L_MESSAGE_TEXT. "#EC *
L_COMPONENT_API = wd_comp_controller->wd_get_api( ).
L_WINDOW_MANAGER = L_COMPONENT_API->get_window_manager( ).
L_WINDOW_POPUP = l_window_manager->create_popup_to_confirm(
text = L_MESSAGE_TEXT
button_kind = if_wd_window=>co_buttons_yesno
message_type = if_wd_window=>co_msg_type_question
window_title = 'Popup de Confirmación'
window_height = POPUP_HEIGHT
window_position = if_wd_window=>co_center )."#EC *
L_API = wd_this->wd_get_api( ).
L_WINDOW_POPUP->subscribe_to_button_event(
button = if_wd_window=>co_button_yes
action_name = ACTIONYES
action_view = l_api
is_default_button = abap_true ).
L_WINDOW_POPUP->subscribe_to_button_event(
button = if_wd_window=>co_button_no
action_name = ACTIONNO
action_view = l_api
is_default_button = abap_false ).
L_WINDOW_POPUP->OPEN( ).
endmethod.

Hope somebody knows whats going on.

Thanx in Advanced!

Kind Regards,

Gerardo J

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Gerardo,

The reason could be that some other code in the used component is overriding what you pass.

Please check this.

Also try using the code L_WINDOW_POPUP->set_window_size( height = popup_height width = '400' ).

I hope it helps.

Regards,

Sumit

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

What release level are you on - NetWeaver 7.0 or 7.01? The parametrers for setting the height and width of the dialog windows were there in 7.0 but didn't do anything yet. It wasn't until the Lightspeed rendering engine of 7.01 that these are usable.

Former Member
0 Kudos

Hi Sumit,

Thanx again, I tryied L_WINDOW_POPUP->set_window_size( height = popup_height width = '400' ). and is not working either.

Really apreciate the help!

Kind Regards,

Gerardo J

Former Member
0 Kudos

Hi Thomas,

I´m on 7.0, then that´s why it is not working.

Thanx alot for your Help.

Kind Regards,

Gerardo J

Answers (0)