Problem mit Eventhandling (inputField)

BusinessServerPages; Erstellung von Webapplikationen.

Problem mit Eventhandling (inputField)

Postby Joel5259 » Wed Oct 17, 2007 2:15 pm

Hallo,

ich habe ein inputField:
Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
  1.       <htmlb:inputField     id    = "p_equi"
  2.                             value = "<%= p_equi %>"
  3.                             submitOnEnter = "TRUE"/>
GeSHi ©


Jetzt möchte ich auf das Ereignis, welches durch Drücken der Enter-Taste ausgelöst wird, reagieren.

Kann mir da jemand weiterhelfen???

Bei einem Button funktioniert es problemlos:
Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
  1. CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
  2.  
  3. IF event_id = CL_HTMLB_MANAGER=>EVENT_ID.
  4.  
  5.   DATA: event TYPE REF TO CL_HTMLB_EVENT.
  6.  
  7.   event = CL_HTMLB_MANAGER=>get_event&#40; runtime->server->request &#41;.
  8.  
  9.   IF event->name = 'button' AND event->event_type = 'click'.
  10.     DATA: button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
  11.     button_event ?= event.
  12.   ENDIF.
  13.  
  14.   CASE event->id.
  15.     WHEN 'xyz'.
  16.            //TO DO
  17.     WHEN others.
  18.  
GeSHi ©


Wird aber ENTER gedrückt, bricht das Programm an dieser Stelle ab:
Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
  1. event = CL_HTMLB_MANAGER=>get_event&#40; runtime->server->request &#41;.
GeSHi ©
Joel5259
.
.
 
Posts: 7
Joined: Wed Oct 17, 2007 2:15 pm

Return to BSP + BHTML

Who is online

Users browsing this forum: No registered users and 2 guests

cron