on 05-15-2008 2:26 PM
Hi,
In my application i want to delete rows from the table. I am having DELETE button when pressing the button i need confirmation message to delete YES and NO button
if yes they pressed I have to call delete the record method / event. iF no nothing.
pl help .
thanks in advance.
sri
Hi,
REFER TO THIS EXAMPLE WDR_TEST_POPUP_TO_CONFIRM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
I am using this code one of my action and created two actions YES and NO.
data: l_cmp_api type ref to if_wd_component,
l_window_manager type ref to if_wd_window_manager,
l_popup type ref to if_wd_window,
l_text type string_table,
l_api type ref to if_wd_view_controller.
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
insert `Data where changed` into table l_text. "#EC *
insert `Do you want to save?` into table l_text. "#EC *
l_popup = l_window_manager->create_popup_to_confirm(
text = l_text
button_kind = if_wd_window=>co_buttons_yesnocancel
message_type = if_wd_window=>co_msg_type_question
window_title = 'Test: Popup to confirm'
window_position = if_wd_window=>co_center )."#EC *
l_api = wd_this->wd_get_api( ).
l_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_yes
action_name = 'YES'
action_view = l_api
is_default_button = abap_true ).
l_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_no
action_name = 'NO'
action_view = l_api
is_default_button = abap_true ).
l_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_cancel
action_name = 'CANCEL'
action_view = l_api
is_default_button = abap_false ).
l_popup->open( ).
but it is dumping.
error is
Note
The following error text was processed in the system DP1 : Action &OBJECT_ID& does not exist
The error occurred on the application server p2pdev01_DP1_12 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: IF_WDR_RR_CONTROLLER~GET_ACTION of program SAPLWDR_RUNTIME_REPOSITORY
Method: GET_ACTION_INTERNAL of program CL_WDR_CONTROLLER=============CP
pl suggest
sri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for the replies. my problem has solved with your guidance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi sri san....
first you should call the method create_popup_toconfirm method in if_wd_window_manager... then you must create an action name. then you should use the method subscribe_to_button_event method in if_wd_window.. to get the button that has been clicked.
---regards,
alex b justin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are built in confirmation dialogs supplied by SAP:
[http://help.sap.com/saphelp_nw70/helpdata/EN/43/c2283b2320332ce10000000a11466f/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/43/c2283b2320332ce10000000a11466f/frameset.htm]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for your reply. If the user selects YES how to call the concerned method or event for this action.
l_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_yes
action_name = 'YES'
action_view = l_api
is_default_button = abap_true ).
l_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_no
action_name = 'NO'
action_view = l_api
is_default_button = abap_false ).
Where I can mention the method.
Thanks,
sri
User | Count |
---|---|
95 | |
11 | |
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.