Skip to Content
Oct 16, 2017 at 11:47 AM

Uncaught TypeError: Cannot read property 'getProperty' of undefined - Json Model - XML View

623 Views Last edit Oct 23, 2017 at 08:53 AM 2 rev

I have created a worklist app with my data in a local json file. I am able to get the data in master page.


On navigation, I am getting the error message as uncaught type error.


The master controller code goes like this

 onListPress : function(oEvent) {
            var oRouter = sap.ui.core.UIComponent.getRouterFor(this);
            var oItem = oEvent.getSource();
            oRouter.navTo("detail", {
            	ID: oItem.getBindingContext().getProperty("ID")

In the controller I am getting value for oItem. For example if i click on first item of the table, it returns table_0-0

Here table_0 is the id of the table.

I have defined the model in manifest.json file.

"models": {
	"i18n": {
			"type": "sap.ui.model.resource.ResourceModel",
			 "settings": {
			 "bundleName": "sapui5.demo.mvcapp.i18n.i18n"
			"test": {
				"type": "sap.ui.model.json.JSONModel",
				"settings": {},
				"uri": "service/data.json"

Please help me to resolve the error.

Thanks in Advance,



detail-view.png (10.8 kB)
error-message.png (18.8 kB)