on 06-11-2007 11:14 AM
Hi Experts,
My code for popup is as below,
l_window_manager = l_cmp_api->get_window_manager( ).
l_popup = l_window_manager->create_popup_to_confirm(
When i try to execute it through SE80 it comes as popup message but same if i see from IVIEW its throwing an error as " SapPopupMainId_X1 "
What could be my fault?
Thanks in advance.
Hi,
I have checked a Pop Up blocker which is OFF. This is happening with all popups not just mine.
My code extract is:
DATA:
l_api_main TYPE REF TO if_wd_view_controller,
l_window_manager TYPE REF TO if_wd_window_manager,
l_popup TYPE REF TO if_wd_window,
l_cmp_api TYPE REF TO if_wd_component.
DATA: str_table TYPE string_table.
DATA: str TYPE string.
l_api_main = wd_this->wd_get_api( ).
l_cmp_api = wd_comp_controller->wd_get_api( ).
str = 'Data will be lost'.
APPEND str TO str_table.
str = 'Do you still want to exit the current screen?'.
APPEND str TO str_table.
l_window_manager = l_cmp_api->get_window_manager( ).
l_popup = l_window_manager->create_popup_to_confirm(
text = str_table
button_kind = 4
message_type = 5
close_button = 'X'
window_title = 'Exit Application Confirmation' ).
window_left_position = 10
window_top_position = 10 ).
window_position = l_conf_context-window_position
window_width = l_conf_context-window_width
window_height = l_conf_context-window_height ).
l_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_yes
action_name = 'YES'
action_view = l_api_main
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_main
is_default_button = abap_false ).
l_popup->open( ).
Please suggest!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
We coldnt find those options in IVIEW given in the notes.
Any more help?
Thnks in advance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Could write some more from your code.....And have you blocked the pop in your browser?
Thanks
Anzy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
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.