0

I created a TableView with some data from database table. This view opens in a pop-up window.

When I select any row from the pop-up, my selected value is saved into some global variable.

How can I close the pop-up window after the row is selected? How to redirect to the view from where the pop-up was triggered?

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
user11823122
  • 99
  • 4
  • 16

2 Answers2

1

Make this:

  1. Create on_close event and put its name into lc_close var
  2. Assign it to your table view click and to popup like this

    <htmlb:tableView>
    ....
    onRowSelection = "ON_CLOSE" >
    </htmlb:tableView>
    
    gr_pop_up->set_on_close_event( iv_event_name = lc_close iv_view = me ).
    gr_pop_up->open( ).
    
  3. Make in popup outbound plug named EXIT

  4. Fire this plug inside itself recursively

    method OP_EXIT.
     me->fire_outbound_plug( iv_outbound_plug = 'EXIT' ).
    endmethod.
    

This will close your popup.

Suncatcher
  • 10,355
  • 10
  • 52
  • 90
-1

You can save your value in a data base table or in a Singelton-Object.

What type of pop-up are you using? POPUP_TO_CONFIRM? Or a DynPro?

If it's the Function Module POPUP_TO_CONFIRM then just implement your logic based on a if statement checking the attribute "answer" of the FM.

If it's a DynPro then you need to add logic on the closing event. In a PAI Module.

stego
  • 193
  • 2
  • 11