cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in table Iterator

Former Member
0 Kudos
27

HI

I am using Table view using Table Iterator.

Here is the code for 3 methods:

-


<b>IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS</b>

*************************************

APPEND INITIAL LINE TO p_column_definitions ASSIGNING <def>.

<def>-COLUMNNAME = 'KTMNG'.

<def>-title = 'TARGET QTY'.

<def>-EDIT = 'TRUE'.

<def>-HORIZONTALALIGNMENT = 'center'.

APPEND INITIAL LINE TO p_column_definitions ASSIGNING <def>.

<def>-COLUMNNAME = 'MEINS'.

<def>-title = 'ORDER UNIT'.

<def>-HORIZONTALALIGNMENT = 'center'.

APPEND INITIAL LINE TO p_column_definitions ASSIGNING <def>.

<def>-COLUMNNAME = 'EINDT'.

<def>-title = 'DELIVERY DATE'.

<def>-HORIZONTALALIGNMENT = 'center'.

<b>IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_ROW_START</b>

*************************************

m_row_ref ?= p_row_data_ref.

IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START

*************************************

WHEN 'EINDT'.

DELIV_DATE = m_row_ref->EINDT.

IF p_edit_mode IS NOT INITIAL.

p_replacement_bee = CL_HTMLB_INPUTFIELD=>FACTORY(

id = p_cell_id

type = 'DATE'

showhelp = 'TRUE'

VALUE = DELIV_DATE ).

ENDIF.

Now problem is i have made "EINDT" column as input enabled.

But when user fills this column after selecting any paticular row.

and then submits by pressing submit button on page...Value in this particular cell remains the earlier value/old value before user input.

Value inseted by user does not get reflected.

Am i missing anywhere or do you know any way of binding this explicitly.

Thanks in advance.

Regards,

Vijay Raheja

<b></b>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I'm not the best person to answer this, but as far as I know there is only one way to perform data binding. Correct me if i'm wrong though.

I usually do it something like this:

CL_HTMLB_INPUTFIELD=>FACTORY(
id = p_cell_id
_VALUE = P_CELL_BINDING 
' etc...
).

where p_cell_binding will point to a cell in the supplied internal table.

Hope this helps.

Former Member
0 Kudos

Thanks Kevin Wong .. !!

Problem Solved

Answers (0)