on 07-17-2007 11:39 AM
Hi All ,
Can anyone plz let me know how to create a popup window with close save buttons & with some texts.
I have tabstrip ADDRESSDETAILS under this I have 4 tab
Tabstrip : ADDRESSDETAIL
4 Tabs : Installement , Payment , Service , Order Mode .
I want to create popup for Payment tab .
Regards
Rahul
solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For the mohamnd answer is correct . But by default you need to have close and save buttons also. right. For this you need to pass the follwing information for the following attrubute. There some values 1 , 2, 3. Probaby you can check it in respective method. if suppor it is 1 then it display OK or CANCEL button and if it is 2 YES or NO buttons. Similarly you can some otption for this. Just check in the respective class.
DEFAULT_BUTTON =
Once you done this, you need to register the Event handler method for save button because when you click on SAVE you have to do some process right?? For ths you need to do some logic.
I hope i clear you. I don't have the WDABAP access now. Thats why i am not able to provide the code. Please excuse me.
Warm Regards,
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
First you need to create a window and embeed the views which you want to show in the pop up and then you call window....
Thanks
Anzy
I am calling this code from my controller , do the necessary changes , if you want to work from your view.
Data:l_cmp_api type ref to if_wd_component,
l_window_manager type ref to if_wd_window_manager,
l_comp_info type ref to IF_WD_RR_COMPONENT,
l_final_window type ref to IF_WD_WINDOW.
l_cmp_api = wd_this->wd_get_api( ).
CALL METHOD L_CMP_API->GET_COMPONENT_INFO
RECEIVING
COMPONENT_INFO = l_comp_info
.
l_window_manager = l_cmp_api->get_window_manager( ).
CALL METHOD L_WINDOW_MANAGER->CREATE_WINDOW
EXPORTING
MODAL = ABAP_TRUE
WINDOW_NAME = 'W_MYWINDOW'
TITLE =
CLOSE_BUTTON = ABAP_TRUE
BUTTON_KIND =
MESSAGE_TYPE = IF_WD_WINDOW=>CO_MSG_TYPE_NONE
CLOSE_IN_ANY_CASE = ABAP_TRUE
MESSAGE_DISPLAY_MODE =
DEFAULT_BUTTON =
RECEIVING
WINDOW = l_final_window
.
CALL METHOD L_FINAL_WINDOW->SET_WINDOW_POSITION
EXPORTING
LEFT = 300
TOP = 150
POSITION =
.
CALL METHOD L_FINAL_WINDOW->SET_WINDOW_SIZE
EXPORTING
WIDTH = '3000px'
HEIGHT = '3000px'
.
wd_this->LO_POP_UP = L_FINAL_WINDOW.
CALL METHOD L_FINAL_WINDOW->OPEN
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.