Skip to Content
0
Former Member
Nov 19, 2008 at 05:59 PM

Assignment block with configTable: some questions

46 Views

Hi all,

I've created a new assignment block with a configtable but i'm having some troubles.

1) How can i get the index of the selected row? My selected_index on my context is always empty...

2) How can I hide a column using the getters/setters on the context attributes?

Here is the layout of my view:

<%@page language="abap" %>

<%@extension name="chtmlb" prefix="chtmlb" %>

<%@extension name="thtmlb" prefix="thtmlb" %>

<%

DATA:

lv_editlist TYPE string,

lv_displaymode TYPE string.

IF controller->view_group_context->is_view_in_display_mode( controller ) = abap_true.

lv_editlist = 'FALSE'.

lv_displaymode = 'X'.

ELSE.

lv_editlist = 'TRUE'.

lv_displaymode = ' '.

ENDIF.

%>

<chtmlb:tableExtension tableId = "ttntable"

layout = "FIXED" />

<thtmlb:areaFrameSetter toolbarButtons = "<%= controller->gt_button %>"

maxButtonNumber = "1"

displayMode = "<%= lv_displaymode %>" />

<chtmlb:configTable id = "Table"

navigationMode = "BYPAGE"

onRowSelection = "select"

table = "//RegNode/Table"

width = "100%"

allRowsEditable = "TRUE"

headerVisible = "FALSE"

personalizable = "FALSE"

downloadToExcel = "FALSE"

actionsMaxInRow = "6"

hasLeadSelection = "TRUE"

selectionMode = "<%= RegNode->SELECTION_MODE %>"

selectedRowIndex = "<%= RegNode->SELECTED_INDEX %>"

selectedRowIndexTable = "<%= RegNode->SELECTION_TAB %>" />