on 09-26-2008 11:26 AM
Hi all,
is it possible to create a popup that contains a radiobutton group without creating a new View to embed?
thanks
GN
Hi,
It is not possible to create radio button group in the pop up window.If you want to show radio button group you should create a view and use it as pop up window.
Thanks
Suman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes you are correct we will get error if you write the logic for Pop window for view in WDDOMODIFYVIEW and also in WDDOINIT method.
the error is.
An instance of the view is already exists. i hope you are also getting the same.
We have no choice to make your view as pop up window,you have to create 2 views and 2 windows.
assign view1(empty view) to window1.
assign view2(with radio buttons) to window2.
Now write the below logic in the WDDOINIT of view1.
data:l_window1 type ref to if_wd_window_manager,
result type ref to if_wd_window,
l_cmp_api type ref to if_wd_component.
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window1 = l_cmp_api->get_window_manager( ).
result = l_window1->create_window(
modal = abap_true
window_name = 'WINDOW2'
* TITLE = TITLE
* CLOSE_BUTTON = ABAP_TRUE
* BUTTON_KIND = BUTTON_KIND
* MESSAGE_TYPE = IF_WD_WINDOW=>CO_MSG_TYPE_NONE
* CLOSE_IN_ANY_CASE = ABAP_TRUE
* MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE
* DEFAULT_BUTTON = DEFAULT_BUTTON
).
result->open( ).
Create application for view1 and then execute.Now your view will be pop up.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
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.