on 02-09-2016 5:28 AM
HI All
I am creating a pop up in crm ui screen.
What I need to do is create a confirmation popup on pressing accept button.
In the event of ACCEPT there is 1000 lines of code.
I need to execute my code before that.
Please help me on this.
Hi Harshit,
Define the popup variable gv_popup type ref to if_bsp_wd_popup at implementation class level.
Try following in event handler of accept (you have to define new event handler where you will have to call those 1000 lines)
IF gv_popup IS NOT BOUND.
gv_popup = me->comp_controller->window_manager->CREATE_POPUP_2_CONFIRM(
IV_TITLE = "title"
IV_TEXT = "text"
IV_BTNCOMBINATION = IF_BSP_WD_WINDOW_MANAGER=>CO_BTNCOMB_YESNO ).
ENDIF.
IF gv_popup IS BOUND.
gv_popup->open( ).
gv_popup->set_on_close_event( IV_EVENT_NAME = "new event handler" ).
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.