0

I have a Table View with some data. I use it in PopUp for selecting row, but everytime when I click on some row it focused on first row and not change. How can I fix this problem? I mean, when I click on some row the focus should be on my selected row.

Here's my code in .htm:

<%@page language="abap" %>
<%@extension name="thtmlb" prefix="thtmlb" %>
<%@extension name="chtmlb" prefix="chtmlb" %>
<%@extension name="bsp" prefix="bsp" %>
<%
* Conversion Cnode SelectionMode to Tag
  data: lv_cellerator_selectionmode   type string,
        lv_cellerator_editmode        type string,
        lv_cellerator_selectioncolumn type string.
  cl_thtmlb_util=>translate_selection_mode(
    exporting
      iv_selection_mode    = CAMPTYPE->SELECTION_MODE
      iv_all_rows_editable = space
    importing
      ev_selection_mode    = lv_cellerator_selectionmode
      ev_edit_mode         = lv_cellerator_editmode
      ev_selection_column  = lv_cellerator_selectioncolumn ).
%>
<chtmlb:configCellerator downloadToExcel       = "FALSE"
                         editMode              = "NONE"
                         id                    = "ConfCellTable"
                         onRowSelection        = "select"
                         personalizable        = "FALSE"
                         selectedRowIndex      = "<%= CAMPTYPE->SELECTED_INDEX %>"
                         selectedRowIndexTable = "<%= CAMPTYPE->SELECTION_TAB %>"
                         selectionColumn       = "<%= lv_cellerator_selectioncolumn %>"
                         selectionMode         = "<%= lv_cellerator_selectionmode %>"
<%--                         selectionMode         = "SINGLE"--%>
                         table                 = "//CAMPTYPE/Table"
                         usage                 = "EDITLIST"
                         visibleFirstRow       = "<%= CAMPTYPE->VISIBLE_FIRST_ROW_INDEX %>"
                         visibleRowCount       = "10"
                         width                 = "100%"
                         xml                   = "<%= controller->configuration_descr->get_config_data( ) %>" />
Suncatcher
  • 10,355
  • 10
  • 52
  • 90
user11823122
  • 99
  • 4
  • 16

1 Answers1

0
<%@page language="abap" %>
<%@extension name="thtmlb" prefix="thtmlb" %>
<%@extension name="chtmlb" prefix="chtmlb" %>
<%@extension name="bsp" prefix="bsp" %>
<%
* Conversion Cnode SelectionMode to Tag
  data: lv_cellerator_selectionmode type string,
        lv_cellerator_editmode  type string,
        lv_cellerator_selectioncolumn type string.

 cl_thtmlb_util=>translate_selection_mode(
  exporting
    iv_selection_mode    = CAMPTYPE->SELECTION_MODE
    iv_all_rows_editable = space
  importing
    ev_selection_mode   = lv_cellerator_selectionmode
    ev_edit_mode        = lv_cellerator_editmode
    ev_selection_column = lv_cellerator_selectioncolumn ).

    DATA: lv_excel          TYPE string.
    lv_excel       = abap_false.

<chtmlb:configCellerator downloadToExcel       = "<%= lv_excel %>"
                         editMode              = "NONE"
                         id                    = "ConfCellTable"
                         onRowSelection        = "select"
                         personalizable        = "FALSE"
                         selectedRowIndexTable = "<%= CAMPTYPE->SELECTION_TAB %>"
                         selectionColumn       = "<%= lv_cellerator_selectioncolumn %>"
                         selectionMode         = "SINGLE"
                         table                 = "//CAMPTYPE/Table"
                         usage                 = "ASSIGNMENTBLOCK"
                         visibleRowCount       = "10"
                         width                 = "100%"
                         xml                   = "<%= controller->configuration_descr->get_config_data( ) %>" />
user11823122
  • 99
  • 4
  • 16
  • Do you know which one of the 2 changes did the trick? (selectionMode from variable to "SINGLE" and usage from "EDITLIST" to "ASSIGNMENTBLOCK") And Why? Thanks! – Sandra Rossi Jul 31 '19 at 05:57