I have a workabke DataView with store. Just want to change it from template-based to component-based.

It had no error if the defaultType was the default value: dataitem.

Then, I created a DataViewItem with userAlias "myitem". After I set "myitem" as defaultType for my DateView and then PREVIEW, the browser said:

TypeError: 'undefined' is not an object (evaluating h.substring')

Please help! Thanks!