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

Events cl_gui_textedit

Former Member
0 Likes
616

Hello,

i've 2 cl_gui_textedit-controls on my dynpro. When you make a doubleclick on those a texteditor is opened. My problem is that i cannot decide which of these two has raised the event...

I thought maybe there is a hint in the "sender" object but i couldn't find something fitting.

Would be nice if you could help me

Kind regards

Tobias

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
579

Hello Tobias

When you define the event handler method you can always add the optional IMPORTING parameter SENDER which contains the reference to the control that raised the event. The you simply code:

  CASE sender.
    WHEN go_textedit_1.  " your 1st textedit control

    WHEN go_textedit_2.  " your 2nd textedit control

    WHEN others.
    ...
    ENDCASE.

Regards

Uwe

Hello,

i've 2 cl_gui_textedit-controls on my dynpro. When you make a doubleclick on those a texteditor is opened. My problem is that i cannot decide which of these two has raised the event...

I thought maybe there is a hint in the "sender" object but i couldn't find something fitting.

Would be nice if you could help me

Kind regards

Tobias

2 REPLIES 2
Read only

uwe_schieferstein
Active Contributor
0 Likes
580

Hello Tobias

When you define the event handler method you can always add the optional IMPORTING parameter SENDER which contains the reference to the control that raised the event. The you simply code:

  CASE sender.
    WHEN go_textedit_1.  " your 1st textedit control

    WHEN go_textedit_2.  " your 2nd textedit control

    WHEN others.
    ...
    ENDCASE.

Regards

Uwe

Read only

0 Likes
579

thanks ... it was too obvious simple...