01-23-2006 6:09 AM
Hi !
I wanted to ask about CL_GUI_DIALOGBOX_CONTAINER .
1. How to use double click event for this control ?
please send me a code example .
2.How to use a variant for this control ?
please send me a code example .
thanks
moshe
01-23-2006 6:17 AM
Hi,
in calss CL_GUI_DIALOGBOX_CONTAINER there is no event for double click.
for reference you can check the report<b> RJBLZB</b>
what are you trying?
and can you explain your requirement..
regards
vijay
Message was edited by: Vijay Babu Dudla
01-23-2006 6:17 AM
Hi,
in calss CL_GUI_DIALOGBOX_CONTAINER there is no event for double click.
for reference you can check the report<b> RJBLZB</b>
what are you trying?
and can you explain your requirement..
regards
vijay
Message was edited by: Vijay Babu Dudla
01-23-2006 6:33 AM
DATA:
ok_code LIKE sy-ucomm,
Dialog container
go_dialog_container TYPE REF TO cl_gui_dialogbox_container.
create object go_ialog_container.
CLASS lcl_event_handler DEFINITION.
PUBLIC SECTION.
METHODS:
double_click
FOR EVENT double_click OF cl_gui_alv_grid
IMPORTING ecomm.
ENDCLASS.
CLASS lcl_event_handler implementation.
PUBLIC SECTION.
METHOD double_click.
case ecomm.
endcase.
end method.
ENDCLASS.
regarding ur secong question, u can use variant normally as u r using for other
01-23-2006 6:38 AM
hi again,
u create object for lcl_event_handler
and set handler statement is important.
so when ever u double click it will automatically handle.
double_click event is there in cl_gui_alv_grid.
so in
data event_receiver type ref to lcl_event_handler.
create event_receiver.
set handler event_receiver->double_click for
go_dialog_container.
NOTE: go_dialog container is object created for CL_GUI_DIALOGBOX_CONTAINER.
now double click will work for cl_gui_dialogbox_container
01-23-2006 6:55 AM
Hi !
First thanks for the answer.
However i wanted to ask CL_GUI_DIALOGBOX_CONTAINER doesn't have event double-click, so despite it doesn't have this event, its ok to use double_click OF cl_gui_alv_grid ?
Is the syntax of set handler is : 'set handler double-click for go_dialog_container' ?
thanks
moshe
01-23-2006 6:58 AM
Hi Moshe,
check this report<b> RJBLZB</b> and you cannot use double click of cl_gui_alv_grid class.,
regards
vijay
01-23-2006 6:59 AM
SET HANDLER (OBJECT DEFINED)->DOUBLE_CLICK FOR GO_DILOG_CONTAINER.
OBJECT DEFINED IS THE OBJECT WE HAVE RTO CREATE FOR THE CLASS WE DEFINED.
ex
create object event_receiver.
SET HANDLER event_receiver->DOUBLE_CLICK FOR GO_DILOG_CONTAINER.
where event_receiver is type ref to lcl_event_handler (class created by us)
01-23-2006 6:52 AM
Hi Moshe
The class CL_GUI_DIALOGBOX_CONTAINER does not have an event called double click.
The dialogbox container is used for holding other containers mostly like picture controls etc.
Please explain ur requirement.
Regards
Meera
01-23-2006 6:59 AM
Hi !
So i wanted to ask if exist other popup control that i can use to show ALV table and also set event double-click ?
01-23-2006 7:02 AM
yes, u can,
by giving set handler statement,
when ever u double click any where, the event automatically triggers.
01-23-2006 8:37 AM
Hi !
I tried to implement the below suggested solution, however
when i activate the program the following message appear :
" The handler method HANDLE_DOUBLE_CLICK3 is only defined for the trigger
object CL_GUI_ALV_GRID, but the system attempted to register a trigger
object of CL_GUI_DIALOGBOX_CONTAINER "
So how to solve this error ?
Is there is other control that do the same task of displaying popup ALV table, and enables using double click too ?
thanks
moshe
01-23-2006 8:46 AM
Hi,
instead of CL_GUI_DIALOGBOX_CONTAINER class, use CL_GUI_CUSTOM_CONTAINER and change the screen type as
Modal Dialog Box, in this case you can use cl_gui_alv_grid class event double click..etc..
regards
vijay
01-24-2006 5:51 AM
then try using
RAISE event event_receiver->DOUBLE_CLICK where ever u need it.
no need to use set handler.