Application Development and Automation 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: 
Read only

CL_GUI_DIALOGBOX_CONTAINER

Former Member
0 Likes
2,990

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
Read only

Former Member
0 Likes
2,732

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
Read only

Former Member
0 Likes
2,733

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

Read only

hymavathi_oruganti
Active Contributor
0 Likes
2,732

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

Read only

0 Likes
2,732

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

Read only

0 Likes
2,732

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

Read only

0 Likes
2,732

Hi Moshe,

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

regards

vijay

Read only

0 Likes
2,732

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)

Read only

Former Member
0 Likes
2,732

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

Read only

0 Likes
2,732

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 ?

Read only

0 Likes
2,732

yes, u can,

by giving set handler statement,

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

Read only

0 Likes
2,732

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

Read only

0 Likes
2,732

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

Read only

0 Likes
2,732

then try using

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

no need to use set handler.