on 04-23-2012 11:00 AM
Hi Folks,
i want to place a self-defined button in my view such that when the corresponding window is opened as popup, the button appears at the bottom right corner such as shown in the attached picture.
I do not want to use the predefined button types such as this:
button_kind = if_wd_window=>co_buttons_yesnocancel
default_button = if_wd_window=>co_button_yes ).
I want to have access to the button in the layout-editor.
Any help greatly appreciated!
Kind regards,
Simon
Hi Simon,
You can change then text on the buttons, define an action for it using the following code:
lr_view_controller = wd_this->wd_get_api( ).
lr_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_ok
button_text = 'Yes'
action_name = 'SUBMIT'
action_view = lr_view_controller ).
Refer the following link:
http://www.sapdev.co.uk/sap-webapps/sap-webdynpro/wdp_displaypopup.htm
Regards,
Sayan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Simon,
when ever u r calling ur window as popup, in that code put
title = window name
* close_in_any_case = abap_true
MESSAGE_DISPLAY_MODE = IF_WD_WINDOW=>CO_MSG_DISPLAY_MODE_SELECTED
* close_button = abap_true
BUTTON_KIND = IF_WD_WINDOW=>CO_BUTTONS_OK
MESSAGE_TYPE = IF_WD_WINDOW=>CO_MSG_TYPE_NONE
DEFAULT_BUTTON = IF_WD_WINDOW=>CO_BUTTON_OK
un comment the close button = abap true , then u wont get any standard close button.
after that as usually create a button with text close on the bottom right corner of the view and write action for dat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
title = window name
* close_in_any_case = abap_true
MESSAGE_DISPLAY_MODE =IF_WD_WINDOW=>CO_MSG_DISPLAY_MODE_SELECTED
* close_button = abap_true
BUTTON_KIND = IF_WD_WINDOW=>CO_BUTTONS_OK
MESSAGE_TYPE = IF_WD_WINDOW=>CO_MSG_TYPE_NONE
DEFAULT_BUTTON = IF_WD_WINDOW=>CO_BUTTON_OK
put the comments for the buttons u dont want.
then create ur own in ur view and create actions for those buttons
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.