cancel
Showing results for 
Search instead for 
Did you mean: 

Web dynpro popup screen resize

Former Member
0 Kudos

Hi All;

I have 3

questions about web dynpro.I search about 1 week but I can't find anything.Some documents are attached related my questions.

First Question;

I use popup screen for asking Yes No question  but I can't change size of webdynpro.it is always same size.

  Data: context_node type ref to if_wd_context_node.

  data: lr_popup type ref to if_wd_window,
        lr_view_controller type ref to if_wd_view_controller.

  data: lr_api_comp_controller type ref to if_wd_component,
        lr_window_manager type ref to if_wd_window_manager,
        t_text_table type string_table,
        t_text type string.

  t_text = 'Are you sure,'.
  append t_text to t_text_table.

  t_text = 'Record will be deleted?'.
  append t_text to t_text_table.

  lr_api_comp_controller = wd_comp_controller->wd_get_api( ).
  lr_window_manager = lr_api_comp_controller->get_window_manager( ).

  lr_popup = lr_window_manager->create_popup_to_confirm(
  text = t_text_table
  button_kind = '4'
  message_type = '1'
  close_button = 'X'
  window_left_position = '1'
  window_top_position = '1'
  window_position = '1'  ).
  lr_popup->set_window_size(
  width = '10%'
  height = '10%' ).

Adds an action to the popup screen buttons
lr_view_controller = wd_this->wd_get_api( ).

lr_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_yes
button_text = 'Yes'
action_name = 'YES'
action_view = lr_view_controller ).


lr_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_no
button_text = 'NO'
action_name = 'NO'
action_view = lr_view_controller ).
wd_this->curr_window = lr_popup.

lr_popup->open( ).

Second Question;

I want to put popup screen bottom of window  but Screen always seems middle of the main window and text seems little character.I can't change

properties of popup screen.

Third Question;

I use message class for knowledge save or nor save.I use search help after message class but message text seems in search help.

  TEXT = 'SAVING IS SUCCESS.'.


    L_CURRENT_CONTROLLER ?= WD_THIS->WD_GET_API( ).
    L_MESSAGE_MANAGER = L_CURRENT_CONTROLLER->GET_MESSAGE_MANAGER( ).
    L_MESSAGE_MANAGER->REPORT_SUCCESS(
    MESSAGE_TEXT  = TEXT ).

Accepted Solutions (1)

Accepted Solutions (1)

bharath_k6
Active Participant
0 Kudos

Hi,

First Question Answer -> I tried several times, resizing the popup is not possible.

May be you can try passing the parameter IS_RESIZABLE = 'X'. in the Create window method.

Second question Answer:- you can not control the location of displaying popup. It is controlled by Web dynpro Framework.

Thrid Question answer: - it can be done. Message will not be displayed if you pass parameter

VIEW = 'Your View Name'. to the REPORT_SUCCESS method.

Best Wishes,

Bharath.

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you Bharath.

Third Question is ok.

But

for 2. question ;method create_popup_to_confirm don't include IS_RESIZABLE parameter.

for 3.question;I don't undestand how can I control Web dynpro Framework.

And I can't find how I can do;one or more selected values in selection field or search help.

My search help provides to select  one record but I want to select more record at the same time.But I can't.

former_member199125
Active Contributor
0 Kudos

Hi..

the same issue has been discussed so many times. res sizing will effect only in new versions. May be thomas can answer exactly in which re sizing will effect.( i think from EHP 5 onwards )

Regards

Srinivas