Currently Being Moderated

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

 

Comments