cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger a method as soon as I leave a field in Web Dynpro ABAP screen?

fisher_li
Participant
0 Kudos

Hey, Web Dynpro ABAP gurus,

     How can I do to trigger an event or method as soon as I leave an input field?

     For example, I have three fields on my screen - Name, address and phone number.

     After I entered the name, as soon as I hit enter key or tab out the name field, I would like to have a method triggered to automatically populate the address field and phone number on screen.

     Thanks in advance!

Fisher Li

Accepted Solutions (1)

Accepted Solutions (1)

Sharathmg
Active Contributor
0 Kudos

Hello Frisher,

For the input field, define an action for the following event:

onEnter.

So this method gets called when the user clicks enter button by placing the cursor in the input field.

However, there is no event available in WD ABAP when the user leaves the field. In WD Java(latest version) has onCHange event which is called when the user leaves the field.

So, you have to manage with the event onEnter which is called when user clicks Enter button with cursor in the field.

Regards,

Sharath

Answers (1)

Answers (1)

fisher_li
Participant
0 Kudos

Sharath,

     Thank you very much!

    

Fisher Li

anja_engelhardt2
Active Contributor
0 Kudos

moved to by moderator