cancel
Showing results for 
Search instead for 
Did you mean: 

SubmitOnEnter in InputField

Former Member
0 Kudos

Hi,

I am setting the SUBMITONENTER to TRUE for 2 inputfields. I am not being able to catch the enter event in onInputProcessing(). I also want to check in onInputProcessing() on which inputfield the user has pressed enter. Has anyone done this already?

Regards

Tejaswini

Message was edited by: Tejaswini Das

Message was edited by: Tejaswini Das

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member689397
Active Participant
0 Kudos

Hi,

I am setting the one maincontroller and two subcontroller.

First controller has build up tableview. ok. selectionmode is singleselect.. when am going to click the radiobutton in maincontroller table view..next opend the first subcontroller..ok..Here is i put one more subcontroller.ie..click the 'open' button..next open the one more subcotroller..ok..First subcontroller is working fine.. but second subcotroller is not working...pls..any one help me..

Regards

sg.

Former Member
0 Kudos

Hi Tejaswini

i did the same like this and its returning the name of the input field where we are pressing submit button.

case htmlb_event_ex->event_id.

when 'input1'.

if htmlb_event_ex->EVENT_SERVER_NAME = 'submitonenter'.

me->input2 = 'hello'.

endif.

htmlb_event_ex->event_id is returning the input field id.

Regards

Naresh

Former Member
0 Kudos

Hi,

I want to understand what you are trying to? You want to capture the value when the Inputfield is changed and use it to do some operation?

Is that right?If it is you need to do some Javascript programming to handle this?

Please let me know if you nees some code!!!

Thank you

arun

rainer_liebisch
Contributor
0 Kudos

Hi Tejaswini,

please have a look at application SBSPEXT_HTMLB page InputField.bsp. In OnInputProcessing you have a reference to CL_HTMLB_INPUTFIELD of the event. So you can get every attribute of the input field via

inputfield_event->attribute

where attribute is one of the attibutes of CL_HTMLB_INPUTFIELD.

Regards,

Rainer

former_member181879
Active Contributor
0 Kudos

Keep in mind that we only in a very late SP changed the event code to work in this case like all other events in the HTMLB library. However, the event does not tell you in which inputfield the ENTER was pressed, it just returns to the server.