cancel
Showing results for 
Search instead for 
Did you mean: 

Key Board command Enter not working

Former Member
0 Kudos

Hello all,

I have a requierement

After a user has entered in the required search data, the user must click the search button to activate the search.

the search function should be enter enabled (user can use "enter" button on keyboard).

How can we achieve this in webdynpro view.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member184578
Active Contributor
0 Kudos

Hi,

You create and action for onEnter event of Input field, create one method for search say search( copy code from onActionSearch of button) . Now call this method in both onEnter and onActionSearch. like

method onenter.

wd_this->search().

endmethod.

Hope this helps u.,

Thanks & Regards,

Kiran.

Former Member
0 Kudos

Thanks to all for reply...

But user want the hot key option of ENTER on search button

Former Member
0 Kudos

Hi Shilpi,

In the ONENTER action for inputfield you are calling the eventhandler metho of search button.

So that becomes the HOT KEY for search button. I think this is only way we can do it.

former_member184578
Active Contributor
0 Kudos

Hi,

We have to do like this only in Web Dynpro ABAP. If you are using pop up window, there is a possibility to set default button.

Unfortunately in normal view we don't have Submit type button like in HTML or JSP code.

Hope this helps u.,

Thanks & Regards,

Kiran.

Former Member
0 Kudos

Thanks kiran....

Lets see if user agree with that....

I will reward you point then

Former Member
0 Kudos

Hi Shilpi Agarwal,

You can give the ONENTER action for your input fields where you enter the data and call the button event

from that action as below.


                
  method ONACTIONENTER .
  data lr_event type ref to cl_wd_custom_event.

  wd_this->onactionbuttonclick(  " This method is the one created for your button click
  wdevent = lr_event              
   ).

   endmethod.