Hi,
Create a Event Handler, so that on clicking that button you can show pop-up.
Example: Clear the collections
1.>
method EH_ONCLEAR
.
CALL
METHOD
me
->
display_popup.
call
METHOD
popup
->
set_on_close_event
EXPORTING
iv_view
=
me
iv_event_name
=
'POPUP_CLOSED'
.
popup
->
open
()
.
endmethod
.
2.> POP_UP_CLOSED is a second button event to trigger the action.
method EH_ONPOPUP_CLOSED
.
data
:
lr_qs
type
REF
TO
cl_crm_bol_dquery_service
.
data
lv_result
type
string
.
lv_result
=
popup
->
get_fired_outbound_plug
()
.
if
lv_result
=
'YES'
.
me
->
typed_context
->
searchnode
->
collection_wrapper
->
clear
()
.
me
->
typed_context
->nameofobject
->
collection_wrapper
->
clear
()
.
lr_qs ?= cl_crm_bol_dquery_Service
=>
get_instance
('nameofobject')
.
me
->
typed_context
->nameofobject
->
collection_wrapper
->
add
(
lr_qs
)
.
endif
.
endmethod
.
3.> Detalles sobre un menú emergente, puedes declarar display_popup como un método global de una clase de implementación de controlador de vista.
MÉTODO display_popup
.
DATA
:
lv_title
TYPE
string
,
lv_text
TYPE
string
.
