cancel
Showing results for 
Search instead for 
Did you mean: 

TableView; Navigation; Runtime Error

0 Kudos

Hi,

I,m getting a 'Runtime Error; Error: Object doesn't support this property or method.' when I'm trying to navigate in a Tableview.

If I choose to debug this (because I have Microsoft Script Debugger), I have an error on:

function ur_table_getCellHeaders(s){ result = null....

This function is inside '../sap/public/bc/ur/Design2002/js/sapUrMapi_ie6.js'.

I'm currently with SP47, IE6.0.2800.1106 and using design2003.

I'm not getting any error if I use design2002.

My code is very simple:

<%@page language="abap" %>

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

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

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

<htmlb:content id = "content"

design = "DESIGN2003"

controlRendering = "SAP">

<htmlb:page>

<htmlb:form id="formTable" >

<htmlb:tableView id = "result"

width = "100%"

table = "<%= t_data %>"

visibleRowCount = "8" >

</htmlb:form>

</htmlb:page>

</htmlb:content>

Any help should be great.

JS

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi again,

I found the problem.

We cannot use the id = "result", because on that javascript function we have a field name 'result' and is missing up this.

So, with SP47 don't give to id field the value result.

JS

maximilian_schaufler
Active Contributor
0 Kudos

result sounds like a very common name, likely this and similiar words are already used ...

In general, it is a good ides to maybe prefix your IDs, this avoids problems with existing IDs or functions:

For example, <b>tv_</b>result (tv for tableview).

In our current application I have a 60kb+ javascript file, lots of functions and variables in there, all are prefixed the one way or another, didn't run into any duplicate-name problems yet.