Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CL_GUI_DIALOGBOX_CONTAINER

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

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

12 REPLIES 12

former_member188685
Active Contributor
0 Kudos

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

hymavathi_oruganti
Active Contributor
0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

Hi Moshe,

check this report<b> RJBLZB</b> and you cannot use double click of cl_gui_alv_grid class.,

regards

vijay

0 Kudos

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)

Former Member
0 Kudos

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

0 Kudos

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 ?

0 Kudos

yes, u can,

by giving set handler statement,

when ever u double click any where, the event automatically triggers.

0 Kudos

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

0 Kudos

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

0 Kudos

then try using

RAISE event event_receiver->DOUBLE_CLICK where ever u need it.

no need to use set handler.