webix_debug.js:5555 Uncaught TypeError: Cannot read property 'length' of undefined

Hi,

I am testing Webix Jet in an application based on the admin demo app, but I have run into a problem where I get “Uncaught TypeError: Cannot read property ‘length’ of undefined” @ webix_debug.js:5555 when I try to use a popup. I must point out that it does this on the unaltered “orders” page when you click the Add Order button. I have checked and commented out my customisations and cleared the cache but this still happens.

The code that causes the error is the last line of this snippet:

_beforeResetBorders:function(collection){
	if (this._hasBorders() && (!this._settings.borderless || this._settings.type == "space")){
		for (var i=0; i < collection.length; i++){
			if (!collection[i]._inner || !collection[i].borderless)
				collection[i]._inner={ top:false, left:false, right:false, bottom:false};
		}
	} else {
		for (var i=0; i < collection.length; i++)

What can I do to track this error down?

Thanks,

Robert

Hi Robert,

please make sure that all layouts have “rows” or “cols” collections.

Thanks Maria, that did it.
Could the error not include a reference to the layout in question - or at least the file?

The question is no clear. Could you please explain it ?