Skip to Content
author's profile photo Former Member
Former Member

creating OK-Cancel pop-up

Hi,

How do I create an Ok-Cancel pop-up in FPM, the one given in cookbook doesnt work?

Regards,

Ronita

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 19, 2008 at 12:24 PM

    hi Ronita De

    DATA: api_component TYPE REF TO if_wd_component,

    window_manager TYPE REF TO if_wd_window_manager.

    api_component = wd_comp_controller->wd_get_api( ).

    window_manager = api_component->get_window_manager( ).

    wd_comp_controller->window = window_manager->create_window(

    window_name = 'POPUPWINDOW'

    button_kind = 3

    close_button = abap_true ).

    wd_comp_controller->window->open( ).

    Cheers,

    Mary

    Add a comment
    10|10000 characters needed characters exceeded

    • The question asked specifically for FPM - Floor Plan Manager. Although some of the suggestions are correct for regular Web Dynpro - the Floor Plan Manager has its own Popup mechanisms.

      I used the NEEDS_CONFIRMATION method of the IF_FPM_UI_BUILDING_BLOCK interface. You can test the event that triggered it. You can then build the confirmation popup message.

      method needs_confirmation .
        case io_event->mv_event_id.
          when cl_fpm_event=>gc_event_goto_start or
               cl_fpm_event=>gc_event_refresh.
            eo_confirmation_request = wd_this->check_before_data_loss( ).
          when cl_fpm_event=>gc_event_delete_current_object.
              data lo_confirm_request type ref to cl_fpm_confirmation_request.
              data lt_conf_text type string_table.
              data lv_text type string.
              lv_text = wd_assist->if_wd_component_assistance~get_text( key = '005' ).
              append lv_text to lt_conf_text.
              lv_text = wd_assist->if_wd_component_assistance~get_text( key = '006' ).
              append lv_text to lt_conf_text.
      * Create a instance passing the string table which contains the texts to be displayed on the popup
              create object lo_confirm_request
                exporting
                  it_confirmation_text = lt_conf_text.
              eo_confirmation_request = lo_confirm_request.
          endcase.
        endmethod.
      

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2008 at 12:19 PM

    hI,

    REFER TO THESE EXAMPLES DEMO_POPUPS_01,DEMO_POPUPS_03

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.