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?
Make this:
on_close
event and put its name into lc_close
var 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( ).
Make in popup outbound plug named EXIT
Fire this plug inside itself recursively
method OP_EXIT. me->fire_outbound_plug( iv_outbound_plug = 'EXIT' ). endmethod.
This will close your popup.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.