Skip to Content
avatar image
Former Member

Handling events on phtmlb components (f.e. Menubar)

Hello,

Does anyone have experience with the handling of events on phtmlb components?

I'm developing a BSP application with htmlb components (dropdown, buttons,..) as well as phtmlb component (Menubar).

Everything is going ok with the buttons: in oninputprocessing i can capture the event with the statments:

DATA: event TYPE REF TO cl_htmlb_event.

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

Unfortunately, when I press on a menubar-item I also pass oninputprocessing (through debugging), but when I check the event (see the code above), the event is empty... Do I have to capture the event in another way?

Anyone having any idea? Many thanks in advance!

grtz

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 30, 2008 at 04:59 PM

    Check the BSP application sbspext_phtmlb

    page menuBar.htm

    >Unfortunately, when I press on a menubar-item I also pass >oninputprocessing

    you need to set the event for onItemClick of menu

    Add comment
    10|10000 characters needed characters exceeded

    • you can get the event information using the cl_htmlb_manager class.

      data: men_even type ref to if_htmlb_data.

      men_even = cl_htmlb_manager=>GET_EVENT_EX( runtime->server->request ).

      using the below two attributes you can differentiate which option is selected from menu

      men-SELECTED_STRING

      men-SELECTED_ID