Problemas con popup de confirmacion

Colapsar
X
 
  • Tiempo
  • Mostrar
Limpiar Todo
nuevos mensajes
  • Junior Member
    • dic
    • 2

    #1

    Problemas con popup de confirmacion

    Hola a todos, estoy realizando una practica de WEB DYNPRO, y estoy utilizando un pop up de confirmación, mi problema esta que al intentar abrir por segunda vez el pop up este ya me muestra nada, sin el titulo, el mensaje y sin los botones. y no se como resolver este problema.
    Este es el código que estoy utilizando.

    method ONACTIONPRO_SAVE_CLIENTES .

    DATA: lo_window_manager TYPE REF TO if_wd_window_manager,
    lt_text TYPE string_table,
    lo_popup TYPE REF TO if_wd_window.

    lo_window_manager = wd_comp_controller->wd_get_api( )->get_window_manager( ).

    APPEND wd_assist->if_wd_component_assistance~get_text( 'C01' ) TO lt_text.



    lo_popup = lo_window_manager->create_popup_to_confirm(
    text = lt_text
    message_type = if_wd_window=>co_msg_type_question
    button_kind = if_wd_window=>co_buttons_yesno
    window_title = wd_assist->if_wd_component_assistance~get_text( 'T01' )
    default_button = if_wd_window=>co_button_no ).

    lo_popup->subscribe_to_button_event(
    EXPORTING
    button = if_wd_window=>co_button_yes
    * button_text =
    * tooltip =
    action_name = 'YES_INSERT'
    action_view = wd_this->wd_get_api( ) " Web Dynpro: View Controller
    * is_default_button = ABAP_FALSE
    ).

    lo_popup->open( ).

    endmethod.
  • Junior Member
    • dic
    • 2

    #2
    Re: Problemas con popup de confirmacion

    Originalmente publicado por AlexHS4
    Hola a todos, estoy realizando una practica de WEB DYNPRO, y estoy utilizando un pop up de confirmación, mi problema esta que al intentar abrir por segunda vez el pop up este ya me muestra nada, sin el titulo, el mensaje y sin los botones. y no se como resolver este problema.
    Este es el código que estoy utilizando.

    method ONACTIONPRO_SAVE_CLIENTES .

    DATA: lo_window_manager TYPE REF TO if_wd_window_manager,
    lt_text TYPE string_table,
    lo_popup TYPE REF TO if_wd_window.

    lo_window_manager = wd_comp_controller->wd_get_api( )->get_window_manager( ).

    APPEND wd_assist->if_wd_component_assistance~get_text( 'C01' ) TO lt_text.



    lo_popup = lo_window_manager->create_popup_to_confirm(
    text = lt_text
    message_type = if_wd_window=>co_msg_type_question
    button_kind = if_wd_window=>co_buttons_yesno
    window_title = wd_assist->if_wd_component_assistance~get_text( 'T01' )
    default_button = if_wd_window=>co_button_no ).

    lo_popup->subscribe_to_button_event(
    EXPORTING
    button = if_wd_window=>co_button_yes
    * button_text =
    * tooltip =
    action_name = 'YES_INSERT'
    action_view = wd_this->wd_get_api( ) " Web Dynpro: View Controller
    * is_default_button = ABAP_FALSE
    ).

    lo_popup->open( ).

    endmethod.

    Comentario

    Trabajando...