cancel
Showing results for 
Search instead for 
Did you mean: 

Popup from the popup

former_member186783
Participant
0 Kudos

Hi Experts,

I'mcreating a popup in a standard way from a normal View called 'MAIN':


lr_popup = lr_window_manager->create_window(
    modal               = abap_true
    window_name         = 'WND_POPUPMAIN'
    title               = lv_text
    close_button        = abap_true
    button_kind         = if_wd_window=>co_buttons_yesno
    message_type        = if_wd_window=>CO_MSG_TYPE_NONE
    close_in_any_case   = abap_false
    ).

lr_popup->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_yes
                   button_text       = lv_text
                   action_name       = 'CPY'
                   action_view       = lr_view_controller
                   is_default_button = abap_true ).

In the Action handler of the YES button (It is in the MAIN View), I made some operations, then I'd like to close this popup then open a new one, which shows the errors (if there are errors) in another popup.



  lr_nd_errors->bind_table( lt_errors ).

    lr_api_comp_controller = wd_comp_controller->wd_get_api( ).
    lr_window_manager = lr_api_comp_controller->get_window_manager( ).

    lr_popup = lr_window_manager->create_window(
      modal               = abap_true
      window_name         = 'WND_ERROR'
      title               = lv_text
      close_button        = abap_true
      button_kind         = if_wd_window=>CO_BUTTONS_CLOSE
      message_type        = if_wd_window=>CO_MSG_TYPE_ERROR
      close_in_any_case   = abap_true
    ).

The problem is: that this second popup doesn't open.

My question is: IS this possible in WenDynpro? (open poopup from another one) If no then what do you think, how can I show the error table?

Thanks

N.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member186783
Participant
0 Kudos

It seems, WDA can't open a popup from a popup

former_member186783
Participant
0 Kudos

Any idea?