cancel
Showing results for 
Search instead for 
Did you mean: 

Sizing confirmation window

Former Member
0 Kudos

Hi all,

I followed some code snippet for displaying confirmation dialogue , when performing one action.

This is the code I followed.

data: lt_text type string_table.

data: mr_popup_window type ref to if_wd_window.

  • pop a confirmation window for display purpose

data: l_window_manager type ref to if_wd_window_manager,

l_cmp_api type ref to if_wd_component,

l_window type ref to if_wd_window.

l_cmp_api = wd_comp_controller->wd_get_api( ).

l_window_manager = l_cmp_api->get_window_manager( ).

append ' Are you sure , want to delete selected Feed ?' to lt_text.

CALL METHOD l_window_manager->create_popup_to_confirm

EXPORTING

text = lt_text

button_kind = if_wd_window=>CO_BUTTONS_OKCANCEL

WINDOW_TITLE = 'Confirmation for deleting '

WINDOW_WIDTH = '100'

WINDOW_HEIGHT = '25'

  • default_button = if_wd_window=>co_button_no

RECEIVING

result = mr_popup_window .

    • associated the action handling methods with the window

DATA: view_controller TYPE REF TO if_wd_view_controller.

view_controller = wd_this->wd_get_api( ).

call method mr_popup_window->SET_WINDOW_SIZE

exporting

WIDTH = '100'

HEIGHT = '100'

CALL METHOD mr_popup_window->subscribe_to_button_event

EXPORTING

button = if_wd_window=>CO_BUTTON_OK

action_name = 'OK'

action_view = view_controller .

CALL METHOD mr_popup_window->subscribe_to_button_event

EXPORTING

button = if_wd_window=>CO_BUTTON_CANCEL

action_name = 'CANCEL'

action_view = view_controller

is_default_button = abap_true .

mr_popup_window->open( ).

Popup is opening but, Height and width values are not being reflected to the window.

Can anyone suggest me if any other way to achieve this

Thanks in advance

Narayana

Edited by: Lakshmi Narayana Chowdary Namala on Oct 30, 2008 9:49 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>Popup is opening but, Height and width values are not being reflected to the window.

Can anyone suggest me if any other way to achieve this

Sorry, but the set window height and width is not currently supported for dialog windows.