Hello,
I want to add custom action when i click on my 'Yes' or 'No'.
This the code i used to create my and add actions to it.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_window(
window_name = 'POPUP_WIND'
title = 'Microsoft Internet Explorer'
close_in_any_case = abap_true
message_display_mode = if_wd_window=>co_msg_display_mode_selected
close_button = abap_true
button_kind = if_wd_window=>CO_BUTTONS_YESNO
message_type = if_wd_window=>CO_MSG_TYPE_QUESTION
default_button = if_wd_window=>CO_BUTTON_NO
).
lr_view_controller = wd_this->wd_get_api( ).
lo_window->subscribe_to_button_event( button = if_wd_window=>CO_BUTTON_YES button_text = 'Yes'
action_name = 'SUBMIT' action_view = lr_view_controller ).
lo_window->subscribe_to_button_event( button = if_wd_window=>CO_BUTTON_NO button_text = 'NO'
action_name = 'Cancel' action_view = lr_view_controller ).
lo_window->open( ).
In my view that calls the popup i have created the action submit and cnacel.
But when i run the WDA i get this message: Action &OBJECT_ID& does not exist
Does any one have a clue?
Thanks