Skip to Content
0
Former Member
Oct 15, 2006 at 06:37 AM

onSubmitEnter Event doesn't work

30 Views

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