on 01-11-2011 9:38 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.