cancel
Showing results for 
Search instead for 
Did you mean: 

How to capture <ENTER> in a webdynpro java based screen

Former Member
0 Kudos

Hi Experts,

I want to call a method (Adaptive RFC FM) from my WebDynpro Java application when the user presses <ENTER> in the screen.

How can I do that.

Appreciate help.

Regards,

Shobhit

Accepted Solutions (0)

Answers (3)

Answers (3)

amolgupta
Active Contributor
0 Kudos

hi,

when you open form editor... (interactive form->edit)

you see tabs (BodyPages | Master Pages | XML Source | PDF Preview)

immediately above that there is a sort of a strip that can Expand(the blue thing)

there u select Language = JavaScript

Select RunAt = Client or Client and Server

the text box there is used for writing JavaScript.

there is a Show option.

if Enter key capturing is allowed in JavaScript you should be able to do it here...

hope it helps...

(i am yet to use JavaScript in interactive forms, this is all i know so far)

regards,

-amol gupta

Former Member
0 Kudos

Hi,

On Enter event can be used only if you use a InputField UI element.

When the focus is on Inputfiled and the user presses "Enter",

an action associated with the OnEnter event of the InputField is called.

In this action you can call your RFC.

former_member186016
Active Contributor
0 Kudos

The is no mechanism to track enter on the screen.

However you register for enter event on UI elements. e.g in Input Field you can provide action for OnEnter property. The action will be fired when the enter key is pressed on the input field.

Regards,

Ashwani Kr Sharma

Former Member
0 Kudos

Thanks Ashwani,

I didnt know about the on enter UI property. Now my requirement is to capture this ''onEnter" event from an adobe form in webdynpro.

Do you have any idea on that?

Shobhit

former_member186016
Active Contributor
0 Kudos

Hi,

I am not completly aware of adobe UI form element usage.

I think you can create some javascript on the UI element in the adobe form to fire the submission of the form.

Once the submission is called for the form the action specified in the OnSubmit property of adobe form UI element will be called.

You can try this and check if it works.

Regards,

Ashwani Kr Sharma