Skip to Content

* event handler for checking and processing user input and

  • for defining navigation

  DATA: event      TYPE REF TO if_htmlb_data,

        ddlb_event TYPE REF TO cl_htmlb_event_selection.

  DATA: data TYPE REF TO cl_htmlb_dropdownlistbox.

  event = cl_htmlb_manager=>get_event( request ).

  IF event IS NOT INITIAL .

    ddlb_event ?= event.

    IF ddlb_event->id EQ ‘DDLB1’ .

      tab1sel = ddlb_event->selection .

    ELSEIF ddlb_event->id EQ ‘DDLB2’ .

      tab2sel = ddlb_event->selection .

      CLEAR data .

      data ?= cl_htmlb_manager=>get_data( request      = runtime->server->request

                                          name         = ‘dropdownListBox’

                                          id           = ‘DDLB1’

                                        ).

      IF data IS NOT INITIAL.

        tab1sel = data->selection.

      ENDIF.

    ELSEIF ddlb_event->id EQ ‘DDLB3’ .

      tab3sel = ddlb_event->selection .

      CLEAR data .

      data ?= cl_htmlb_manager=>get_data( request      = runtime->server->request

                                          name         = ‘dropdownListBox’

                                          id           = ‘DDLB1’

                                        ).

      IF data IS NOT INITIAL.

        tab1sel = data->selection.

      ENDIF.

      CLEAR data .

      data ?= cl_htmlb_manager=>get_data( request      = runtime->server->request

                                          name         = ‘dropdownListBox’

                                          id           = ‘DDLB2’

                                        ).

      IF data IS NOT INITIAL.

        tab2sel = data->selection.

      ENDIF.

    ENDIF .

  ENDIF .

Hope you enjoyed this demo. Try this & give your feedback.

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

  1. Subramanian Venkateswaran
    Hi Raja,

    It would be very easy to understand, if you put some screenshots of the output along with the code, or something like before/after(that reminds me of the hair growth ads).

    Regards,
    Subramanian V.

    (0) 

Leave a Reply