on 06-25-2013 2:45 PM
Hi,
How to display a confirmation popup without creating a separate window and view.
For example: I want to delete an entry. So when I click on the delete button, a popup should appear for confirming the delete action.
How to achieve this without creating a separate window.
Thanks in advance.
Regards,
Ankit
Hi Ankit,
You can create a popup window for the same. Create a popup window using the below method:
CREATE_POPUP_TO_CONFIRM method of the interface IF_WD_WINDOW_MANAGER.
You can also add action to the popup screen buttons.
Regards,
Sanjeev Kotwal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Ankit,
Call the same window which you have been used for displaying the view( s ). It works fine.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
ls_string = 'Are you sure you want to delete the record?'.
append ls_string to lt_string.
CALL METHOD lo_window_manager->create_popup_to_confirm
EXPORTING
text = lt_string
button_kind = 4
* message_type =
* close_button = ABAP_TRUE
* window_title =
window_left_position = '3'
window_top_position = '3'
window_position = '10'
window_width = '50'
window_height = '50'
* default_button =
RECEIVING
RESULT = lo_window
.
lo_window->open( ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.