on 04-21-2011 7:23 AM
Hi Experts,
Can i create a POP UP Box in the component controller method.
Please tell me how i can do this.
Thanks
Mahesh
Hi
There is no provision in CC to create any UI elements, You have layout in view only.
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Although it is true you can't create UI elements in the layout from the component controller, you can create a Popup. You do this by calling a specific window. Here is an example of the code for this:
wd_this->wd_get_api( )->get_window_manager( )->create_window(
window_name = 'W_CREATE_DIAG'
title = 'Create New Record'
message_display_mode = if_wd_window=>co_msg_display_mode_selected
button_kind = if_wd_window=>co_buttons_okcancel
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_ok )->open( ).
Whatever window (and embedded view) you call here will be opened as a popup from the component controller.
You can have a method in component controller which creates popup
lo_window_manager->create_popup_to_confirm.
You can also use code generator to generate the popup based a window.
However underlying fact is that you should have the Parent window on which popup can be created.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.