on 2011 Dec 12 10:19 AM
Hello there,
I'm new in SAP, and I have a problem with my popup.
Each time a user selects a value from a dropdown, a popup must appear, I could do this, but the popup I get is empty
Here is how I create my popup:
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
l_popup = l_window_manager->create_popup_to_confirm(
text = l_text
button_kind = if_wd_window=>co_buttons_okcancel
message_type = if_wd_window=>co_msg_type_warning
close_button = 'X'
window_title = 'Warning'
window_position = if_wd_window=>co_center ). "#EC *
l_api = wd_this->wd_get_api( ).
Can someone tell me how I can fix it?!
Thank you,
K
Hi,
The way you are opening popup is ok. But i don not understand what do you mean by pop up is empty? does your pop up has UI elements and they do not contain data? In this case, the node with which you have binded the UI elements does not have data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I already have the "_popup->open( )"
Here is how I call my popup
insert `Important!` into table l_text. "#EC *
insert `« Attention : La Priorité très Elevée (Very high) est exclusivement réservée au blocage du système de production ».`
into table l_text. "#EC *
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
l_popup = l_window_manager->create_popup_to_confirm(
text = l_text
button_kind = if_wd_window=>co_buttons_okcancel
message_type = if_wd_window=>co_msg_type_warning
close_button = 'X'
window_title = 'Warning'
window_position = if_wd_window=>co_center
). "#EC *
l_api = wd_this->wd_get_api( ).
*Creating OK button
l_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_ok
button_text = 'Confirmer la priorité '
action_name = 'Confirmer'
action_view = l_api
is_default_button = abap_false
).
*Creating Cancel Button
l_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_cancel
button_text = 'Annuler'
action_name = 'Annuler'
action_view = l_api
is_default_button = abap_true ).
*
l_popup->set_window_size( width = '40%' height = '5%' ).
l_popup->open( ).
Thank you for your quick answers btw
User | Count |
---|---|
62 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.