on 09-30-2010 4:15 AM
Hi Experts,
Can we add any UI Elements to confirmation dialog window like checkbox, input etc., is yes please help me how to do this?
Thanks,
Venkat
You can create your own view and then instead of standard confirmation dialog, you can launch this window as a pop up.
Regards
Manas Dua
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Yes that's what I meant.
Create required view , put it in the window.
Raise the window as a pop-up in the below shown way.
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 = 'ZHR_XX_EMPHLIST'
* title =
* 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_OKCANCEL "OK/Cancel
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_ok
).
lo_window->open( ).
In the code above , check paramater button_kind.In the above case , ok and cancel buttons are created.
In the same way you have other options ...Check the attributes of "if_wd_window" to know all options possible.
You also have options to raise the window without any buttons.
Thnks,
aditya.
Hi ,
I dont think you can play with the "yes/no" button created using button kind.
If you want to do somthing like that , create a button in the view that is being raised as a pop-up itself instead of using button_kind , so that you can do whatever you like with that button.(enabling/disabling etc).
Thnks,
aditya.
Hai ,
Check this once
DATA :l_text TYPE string_table.
DATA: view_contrl TYPE REF TO if_wd_view_controller,
lo_window2 TYPE REF TO if_wd_window.
APPEND 'Do u want TO Save ..?' TO l_text.
CALL METHOD lo_window_manager1->create_popup_to_confirm
EXPORTING
text = l_text
button_kind = if_wd_window=>co_buttons_yesno
message_type = if_wd_window=>co_msg_type_question
CLOSE_BUTTON = ABAP_TRUE
WINDOW_TITLE =
WINDOW_LEFT_POSITION =
WINDOW_TOP_POSITION =
window_position = if_wd_window=>co_center
window_width = '30'
window_height = '50'
DEFAULT_BUTTON =
RECEIVING
result = lo_window2.
lo_window2->open( ).
lo_window1->open( ).
view_contrl = wd_this->wd_get_api( ).
CALL METHOD lo_window2->subscribe_to_button_event
EXPORTING
button = if_wd_window=>co_button_yes
action_name = 'SAVE_YES'
action_view = view_contrl.
use this code wirte it in SAVE_YES method..
Before this u hav to create the POP UP window . thn cal this window as above menstioned.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
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.