Skip to Content
0
Former Member
Jan 11, 2011 at 09:38 PM

create_popup_to_confirm window_height parameter not working

111 Views

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