Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
athavanraja
Active Contributor
0 Kudos

* 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.

2 Comments
Top kudoed authors