cancel
Showing results for 
Search instead for 
Did you mean: 

Messages Box

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member184578
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.