cancel
Showing results for 
Search instead for 
Did you mean: 

<htmlb:tableView>: (table) Attribute value is not a valid reference

Former Member
0 Kudos

Hi All,

In Table view i am getting the following error.

The following error text was processed in the system:

<htmlb:tableView>: (table) Attribute value is not a table

My code in View is

CREATE OBJECT MODEL TYPE ZCL_HREPAN_MODEL_MAIN.

CREATE OBJECT tv_itr1 TYPE ZCL_HREPAN_MODEL_ITR_STATUS exporting model = model.

%>

<htmlb:tableView id = "reportsTable1"

headerVisible = "true"

headerText = "All PANs:"

footerVisible = "true"

design = "alternating"

visibleRowCount = "20"

width = "100%"

fillUpEmptyRows = "false"

columnWrapping = "false"

columnWidth = "200"

sort = "server"

selectionMode = "lineEdit"

iterator = "<%=tv_itr1%>"

table = "//MODEL/DATE_RANGE_PAN" >

</htmlb:tableView>

in above DATE_RANGE_PAN is table from model 'ZCL_HREPAN_MODEL_MAIN'

Controller as below: DO_REQUEST.

if lr_event is bound and lr_event->server_event = 'allpans'.

lo_model ?= get_model( 'model_id_status' ).

lo_display_view->set_attribute( name = 'model' value = lo_model ).

lo_display_view = create_view( view_name = 'allpans.htm').

call_view( lo_display_view ).

ENDIF.

DO_INIT as below

lo_model ?= create_model( class_name = 'ZCL_HREPAN_MODEL_MAIN'

model_id = 'model_id_status').

please help me how to solve this??

REgards,

Kishan

Accepted Solutions (0)

Answers (1)

Answers (1)

raja_thangamani
Active Contributor
0 Kudos

I think DATE_RANGE_PAN is not table. Make sure its a table. If issue persist, post the data type declaration here.

Raja