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: 

Dispatch event ?

Former Member
0 Kudos
152

Hi All!

I have an object of CL_GUI_TEXTEDIT class. That object have F1, F4, double click,... event, when user press F4 key then data will be stored in database (I can catch this event). My program have a save button and I want to F4 event was catch when user click to save button instead press F4 key.

Please give me some solutions!

Thanks & Regard

huandv

1 ACCEPTED SOLUTION

franois_henrotte
Active Contributor
0 Kudos
87

catch the function code in your program (PAI) and call method DISPATCH of your text object like this:

my_text->dispatch( eventid = my_text->event_f4 ).

1 REPLY 1

franois_henrotte
Active Contributor
0 Kudos
88

catch the function code in your program (PAI) and call method DISPATCH of your text object like this:

my_text->dispatch( eventid = my_text->event_f4 ).