on 2006 Feb 16 6:53 AM - last edited on 2024 Feb 04 2:08 AM by postmig_api_4
Hi,
We have a table view with some editable columns and some non-editable columns created using Iterator. When we display the data in table view at run time, it's displaying in blank cells of editable columns. We applied the OSS note 855892 for this issue, still no change. Anybody having any idea, why we are getting this problem. Thanks in Advance.
Hi Sebastian,
Thanks for Help. As I am not using model binding, I just added these to attributes (cellvalue = 'TRUE'
encode = 'TRUE'). Still not able to solve the problem. Can you guess what causing problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for reply. Here is the code, what I am using in Iterator class.
method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS .
FIELD-SYMBOLS: <def> LIKE LINE OF p_column_definitions.
APPEND INITIAL LINE TO p_column_definitions ASSIGNING <def>.
<def>-COLUMNNAME = 'TXZ01'.
APPEND INITIAL LINE TO p_column_definitions ASSIGNING <def>.
<def>-COLUMNNAME = 'EVRTN'.
APPEND INITIAL LINE TO p_column_definitions ASSIGNING <def>.
<def>-COLUMNNAME = 'EKGRP'.
APPEND INITIAL LINE TO p_column_definitions ASSIGNING <def>.
<def>-COLUMNNAME = 'CLASSC'.
APPEND INITIAL LINE TO p_column_definitions ASSIGNING <def>.
<def>-COLUMNNAME = 'DOWNXY'.
<def>-EDIT = 'X'.
APPEND INITIAL LINE TO p_column_definitions ASSIGNING <def>.
<def>-COLUMNNAME = 'TOWNXY.
<def>-EDIT = 'X'.
APPEND INITIAL LINE TO p_column_definitions ASSIGNING <def>.
<def>-COLUMNNAME = 'VTEXT'.
APPEND INITIAL LINE TO p_column_definitions ASSIGNING <def>.
<def>-COLUMNNAME = 'MSAMODE'.
<def>-EDIT = 'X'.
endmethod.
method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START .
CASE p_column_key.
WHEN 'DOWNXY'.
IF p_edit_mode IS NOT INITIAL.
p_replacement_bee = CL_HTMLB_INPUTFIELD=>FACTORY( id = p_cell_id
type = 'STRING').
ENDIF.
WHEN 'TOWNXY'.
IF p_edit_mode IS NOT INITIAL.
p_replacement_bee = CL_HTMLB_INPUTFIELD=>FACTORY( id = p_cell_id
type = 'STRING').
ENDIF.
WHEN 'MSAMODE'.
IF p_edit_mode IS NOT INITIAL.
p_replacement_bee = CL_HTMLB_INPUTFIELD=>FACTORY( id = p_cell_id
type = 'STRING').
ENDIF.
ENDCASE.
endmethod.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
just set a breakpoint to see whether your code passed thru the if statement for p_edit_mode
IF p_edit_mode IS NOT INITIAL.
p_replacement_bee = CL_HTMLB_INPUTFIELD=>FACTORY(
id = p_cell_id
type = 'STRING'
cellvalue = 'TRUE'
encode = 'TRUE').
ENDIF.
what i have noticed is that if the p_replacement_bee is not filled with the CL_HTMLB_INPUTFIELD=>factory methods return value, you get &nsp in table cell
Regards
Raja
Hi Raja,
please post the code from iterators GET_COLUMN_DEFINITIONS & RENDER_CELL_START of the editable columns.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.