on 03-31-2011 10:55 AM
Hi all,
I would like to implement messages boxes in my web dynpro application.
Like pop up messages with "Customer xxx successfully created ! "
or "Error : Customer already exist !"
with a button "Ok" that forward to a view ...
How can I proceed ?
Thanks !
Benjamin
Hi Benjiman,
Pls 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,
* Pop Up window to show success message.
insert `Created Successfully!!` into table lt_text .
APPEND lv_reqid to lt_text.
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_window =
lo_window_manager->create_popup_to_confirm(
text = lt_text
button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>co_msg_type_information
close_button = 'X'
window_title = 'Confirmation message box'
).
* lo_window->subscribe_to_button_event
lo_window->subscribe_to_button_event(
button = if_wd_window=>co_button_ok
action_name = *'PROCEED*' " Calling Action Proceed On clicking Ok.
button_text = 'OK'
action_view = l_api
is_default_button = abap_true
).
lo_window->open( ).
Now in OnActionProceed navigate to next view which u want.,
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.
Hi Benjamin,
Messages box means?? you want to collect all messages and display in a popup window??
What is your requirement exactly? please expalin..
Cheers,
Kris.
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.