on 04-14-2011 1:23 PM
Hi,
I pop-up a view in a window, that contains an error message.
How can i change this error message using a parameter or anything else ?
Thanks in advance.
Edited by: dyngry on Apr 14, 2011 2:23 PM
Hi dyngry.,
If u want to display only message in popup window., no need of another view and window., use create_popup_to_confirm() method.,
try this.,
* Data declarations for Pop up window
data: lt_text type string_table,
lo_window_manager type ref to if_wd_window_manager,
lo_api_component type ref to if_wd_component,
lo_window type ref to if_wd_window,
l_api type ref to if_wd_view_controller.
msgtext = 'Do u want to continue. ?'
append msgtext to lt_text.
clear: tmp_from , tmp_to .
l_api = wd_this->wd_get_api( ).
lo_api_component = wd_comp_controller->wd_get_api( ) .
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window1 =
lo_window_manager->create_popup_to_confirm(
text = lt_text
button_kind = if_wd_window=>co_buttons_okcancel
message_type = if_wd_window=>co_msg_type_information " this is info msg u can give error message here
close_button = 'X'
window_title = 'Confirmation message box'
).
lo_window1->open( ).
reply if u need some more clarifications.,
Thanks & Regards
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
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.