[英]Close pop-up window after row selecting
I created a TableView with some data from database table. 我用来自数据库表的一些数据创建了一个TableView。 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 on_close
事件并将其名称放入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
插入名为
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. 您可以将值保存在数据库表或Singelton对象中。
What type of pop-up are you using? 您正在使用哪种类型的弹出窗口?
POPUP_TO_CONFIRM
? POPUP_TO_CONFIRM
? Or a DynPro? 还是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. 如果是功能模块
POPUP_TO_CONFIRM
则只需根据if语句检查FM的属性“ answer
”来实现逻辑。
If it's a DynPro then you need to add logic on the closing event. 如果是DynPro,则需要在关闭事件上添加逻辑。 In a PAI Module.
在PAI模块中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.