Skip to Content
0
Jun 05, 2013 at 12:06 AM

Unable to display the Contents of Table view

39 Views

HI All,

I am facing a very typical error. : Could not see the contents of the table in the table view.

i am setting the contents of table view( custom table view using Value node ) using Set_collection

as shown below.

IF lit_final[] IS NOT INITIAL.
* create collection object to transfer data
CREATE OBJECT lr_col
TYPE
cl_crm_bol_bo_col.

LOOP AT lit_final INTO wa_final.
* create line object
CREATE DATA lr_tabline.
* create value object with current line for colleciton
CREATE OBJECT lr_valuenode
EXPORTING
iv_data_ref = lr_tabline.
* set current line data

* Set the Object ID
CLEAR lv_string.
lr_valuenode->set_property(
EXPORTING
iv_attr_name = 'OBJECT_ID' " Component Name
iv_value = wa_final-object_id
).

* Set the Service

lr_valuenode->set_property(
EXPORTING
iv_attr_name = 'SERVICE' " Component Name
iv_value = wa_final-service
).

* Set the Service Name
lr_valuenode->set_property(
EXPORTING
iv_attr_name = 'SERV_NAME' " Component Name
iv_value = wa_final-serv_name
).

* Set the Status
lr_valuenode->set_property(
EXPORTING
iv_attr_name = 'STAT' " Component Name
iv_value = wa_final-stat
).

* Set the service Id
lr_valuenode->set_property(
EXPORTING
iv_attr_name = 'TOT_AMT' " Component Name
iv_value = wa_final-tot_amt
).

* add current line to collection
lr_col->add( lr_valuenode ).
ENDLOOP.

lr_col->sort(
EXPORTING
iv_attr_name = 'OBJECT_ID' " Component Name
).

* set collection
typed_context->result->set_collection(
EXPORTING
collection = lr_col

I can see the table view getting displayed with scroll to next page as well. but the contents in the view are blank.

In debugging i have checked tht the contents are set using Set COllection.

Pls find the screen shot of the table view getting displayed. Also find the screen shot of the error i get in debug in .htm view.

My htm coding is as below:

<%@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 = Result->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 ).
%>

<br>
<br>
<chtmlb:configCellerator actions = "<%= controller->gt_button %>"
<%-- actions = "<%= controller->IF_BSP_WD_DYN_BTN_CONTROL~GET_LOCAL_TOOLBAR_BUTTONS( ) %>"--%>
<%-- actionsMaxInRow = "<%= controller->IF_BSP_WD_DYN_BTN_CONTROL~GET_NO_OF_VISIBLE_TOOLBAR_BTNS( ) %>"--%>
actionsMaxInRow = "1"
downloadToExcel = "TRUE"
editMode = "<%= lv_cellerator_editmode %>"
id = "ConfCellTable"
onRowSelection = "select"
personalizable = "TRUE"
selectedRowIndex = "<%= Result->SELECTED_INDEX %>"
selectedRowIndexTable = "<%= Result->SELECTION_TAB %>"
selectionColumn = "<%= lv_cellerator_selectioncolumn %>"
selectionMode = "<%= lv_cellerator_selectionmode %>"
<%-- selectionMode = "<%= RESULT->selection_mode %>"--%>
table = "//Result/Table"
usage = "EDITLIST"
visibleFirstRow = "<%= Result->VISIBLE_FIRST_ROW_INDEX %>"
visibleRowCount = "10"
width = "100%"
xml = "<%= controller->configuration_descr->get_config_data( ) %>"
/>

Kindly help me asap !!

Attachments

imageC2.png (107.7 kB)
imageC1.png (156.1 kB)