Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

List Sorting and Broken Navigation

Hi All,

I have a xml split view app that works correctly. However when I add Sorting to the Master List XML I start to see the error "Uncaught TypeError: Cannot read property 'getPath' of undefined"

The sorting was added like this, and it displays correctly when I run the app,

items="{

  path : '/Carriers',

  sorter : {

  path : 'Category',

  group : true

  }

The error in the code appears here:

showDetail: function(oItem) {

// If we're on a phone device, include nav in history

var bReplace = jQuery.device.is.phone ? false : true;

this.getRouter().navTo("detail", {

from: "master",

entity: oItem.getBindingContext().getPath().substr(1),

tab: this.sTab

}, bReplace);

},

Thanks,

Stuart

Tags:
Not what you were looking for? View more on this topic or Ask a question