cancel
Showing results for 
Search instead for 
Did you mean: 

onSubmitEnter Event doesn't work

Former Member
0 Kudos

Hi All,

I have tried it both ways (cl_htmlb_event, if_htmlb_data). Current version of WAS is 6.2.

The code in my view generates the server event but event_id is always blank for onSubmitEnter. Any idea? Works in 6.4

<htmlb:gridLayoutCell columnIndex="1" rowIndex="2" verticalAlignment="BOTTOM">

<htmlb:label for="product" text="Material Number" required="TRUE"/>

</htmlb:gridLayoutCell>

<htmlb:gridLayoutCell columnIndex="2" rowIndex="2" verticalAlignment="BOTTOM">

<htmlb:inputField id="f_product" submitOnEnter="TRUE" disabled="<%= v_linedisable %>" alignment="LEFT" required="X" type="STRING" width="115"

value="//vmodelsetup/mret_productcode"/>

</htmlb:gridLayoutCell>

DATA: enterevent_id TYPE REF TO CL_HTMLB_EVENT,

event_id TYPE REF TO if_htmlb_data.

event_id = cl_htmlb_manager=>get_event_ex( runtime->server->request ).

enterevent_id = cl_htmlb_manager=>get_event( runtime->server->request ).

IF enterevent_id IS NOT INITIAL AND

enterevent_id->IF_HTMLB_DATA~event_name = 'inputField' AND

enterevent_id->IF_HTMLB_DATA~event_type = 'click' AND

enterevent_id->IF_HTMLB_DATA~event_id = 'f_upc'.

<CODE GOES HERE>

endif.

IF event_id IS NOT INITIAL AND

event_id->event_name = 'inputField' AND

event_id->event_type = 'click' AND

event_id->event_id = 'f_upc'.

<CODE GOES HERE>

ENDIF.

Your feeback will be much appreciated.

Partho

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks for your input Raja. I am going to submit an OSS note on this one shortly. I am also finding rowselection in tableview not working correctly. If the TV is lineedit, clicking on the row doesn't highlight it; paging up-down shows the highlighted row; it is very inconsistent. Maybe there is a SP to fix this as well.

Partho

athavanraja
Active Contributor
0 Kudos

check this thread

according to that thread in some SPs submitonenter doesnt work properly.

Regards

Raja