on 04-28-2009 2:17 PM
Hi all,
I'd like to have in popup-windows buttons (Ok, No, Cancel) that look like normal buttons or UI elements of the type "Button". What I'm seeing now is the underline names (Ok, No, Cancel) on the right edge of the popup-view.
I use
cl_wd_popup_factory=>popup
and
create_popup_to confirm of the window manager.
How can I get the buttons that look like normal buttons? Perhaps do I need an update (e.g. EhP1)?
Kind regards,
Oleksandr
Create your own view .
Create a window. Embed View in this window.
Now write the following code in the OnAction method.
* Data declarations for window
DATA: lo_window_manager TYPE REF TO if_wd_window_manager ,
lo_api_component TYPE REF TO if_wd_component ,
lo_window TYPE REF TO if_wd_window ,
l_api TYPE REF TO if_wd_view_controller.
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 = 'Window Name'
message_display_mode = if_wd_window=>co_msg_display_mode_selected
message_type = if_wd_window=>co_msg_type_none
).
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.
How can I use in this case the function "subscribe_to_button_event" for confirm popups if I have my own buttons on the view instead of standard buttons?
"subscribe_to_button_event" is used for creating action for standard buttons on the Popup.
But in your case as you have created your own buttons in the view for the popup, simply create 'onAction' events for buttons in your view and write the required code.
Regards,
Radhika.
The problem is that the event handlers for these button actions are located in different views (I will use the same popup function for all queries).
In the function "subscribe_to_button_event" I had a possibility to define in the parameters the handler view name und the action name.
How can I realize that now in the best way if I have only onAction event in my own popup view for my own buttons?
Regards,
Oleksandr
Hi,
Create a view with your own buttons and embed this inside 2nd window. call this window as a popup in 1st one upon some action.
Regards,
Lekha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
for that, you could create your own window with the buttons you want.
and Call that window using Create Window method of If_wd_window_manager.
Thanx.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.