Error is appeared in console at using Table control:
Cannot read property 'attr' of undefined.
Previously this error was described here (currently non-working link):
Later it was mentioned here (currently working link):
Now the same error appeared in another project:
Table.js:6 Uncaught TypeError: Cannot read property 'attr' of undefined(anonymous function)
@ Table.js:6 Q.extend.each
@ sap-ui-core.js:60 T._updateTableContent
@ Table.js:6 (anonymous function)
@ Table.js:6 (anonymous function)
@ sap-ui-core.js:143
(sap-ui-core.js version 2.3.0)
Seems, error happens at rendering xml view.
It happens when $.rowSelector is undefined at executing following statement (in Table.js):
$.rowSelector.attr('title', this._oResBundle.getText('TBL_ROW_SELECT'));
and it is undefined because such object (where rowSelector is undefined) is returned by function R.prototype.getDomRefs:
var $ = r.getDomRefs(true);
and rowSelector is undefined in returned object because it is forcibly set as undefined in following block of function R.prototype.getDomRefs (in Row.js):
if (d.rowSelector && d.rowSelector.length > 0) {
d.row = d.row.add(d.rowSelector);
} else {
d.rowSelector = undefined;
}
even when d.rowSelector was not undefined,
nor an array, which length may be greater than 0,
but the object, which has only two own properties named "context" and "selector".
However, the root cause still is not known -
why in some cases it is so, but in other cases - no,
and how this error can be fixed at all...
Has anybody some other information about this error?