cancel
Showing results for 
Search instead for 
Did you mean: 

Start search with press key "enter"

Former Member
0 Kudos

Hi all,

i have a web dynpro application which should be started after pressing the key "Enter". There is a button "Go".

How can i do this that enter has the same functionality as the "Go"-button?

regards

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member182190
Active Participant
0 Kudos

Hi Wolfgang,

As you need to execute the same action that is being done on action go for your

on enter too.

Just create an ON_ENTER action .

Put the following code in the ON_ENTER method

DATA:lo_event TYPE REF TO cl_wd_custom_event.

CREATE OBJECT lo_event

EXPORTING

name = 'ON_GO'.

wd_this->onactiongo( lo_event ).

Hope this solves your problem.

Regards,

Ismail.

0 Kudos

Hi Wolfgang,

If I am getting you right, you want to replicate what the Go button click does on the Enter event of an InputField.

You can map an action to the OnEnter event of the InputField. From the action mapped you call the "Go" action.

Eg: If the action name mapped to the button Go is "Go" then:

You can use the following code:

wd_this->onactiongo( wdevent ).

This should do the trick.

Hope that I have got the question right.

Regards,

Ameya